(0) Obligation:

Clauses:

in(X, tree(X, X1, X2)).
in(X, tree(Y, Left, X3)) :- ','(less(X, Y), in(X, Left)).
in(X, tree(Y, X4, Right)) :- ','(less(Y, X), in(X, Right)).
less(0, s(X5)).
less(s(X), s(Y)) :- less(X, Y).

Query: in(a,g)

(1) PrologToPrologProblemTransformerProof (SOUND transformation)

Built Prolog problem from termination graph ICLP10.

(2) Obligation:

Clauses:

inA(tree(0, T35, T36)).
inA(tree(T49, T50, T51)) :- lessB(T49).
inA(tree(T49, T50, T51)) :- ','(lessB(T49), inA(T50)).
lessD(0, s(T99)).
lessD(s(T106), s(T105)) :- lessD(T106, T105).
lessE(0, s(T140)).
lessE(s(T145), s(T147)) :- lessE(T145, T147).
pF(T89, T88, T15) :- lessD(T89, T88).
pF(T92, T88, T15) :- ','(lessD(T92, T88), inG(s(T92), T15)).
pH(T127, T130, T129) :- lessE(T127, T130).
pH(T127, T133, T129) :- ','(lessE(T127, T133), inG(T133, T129)).
lessB(s(T60)).
inG(T6, tree(T6, T7, T8)).
inG(0, tree(s(T22), T15, T16)) :- inA(T15).
inG(s(T89), tree(s(T88), T15, T16)) :- pF(T89, T88, T15).
inG(T130, tree(T127, T128, T129)) :- pH(T127, T130, T129).
inG(0, tree(s(T169), T162, T163)) :- inA(T162).
inG(s(T184), tree(s(T183), T162, T163)) :- pF(T184, T183, T162).
inG(T202, tree(T199, T200, T201)) :- pH(T199, T202, T201).
inG(s(T219), tree(0, T211, T212)) :- inG(s(T219), T212).
inG(s(T232), tree(s(T230), T211, T212)) :- lessE(T230, T232).
inG(s(T235), tree(s(T230), T211, T212)) :- ','(lessE(T230, T235), inG(s(T235), T212)).

Query: inG(a,g)

(3) PrologToPiTRSProof (SOUND transformation)

We use the technique of [TOCL09]. With regard to the inferred argument filtering the predicates were used in the following modes:
inG_in: (f,b) (b,b)
inA_in: (b)
pF_in: (f,b,b) (b,b,b)
lessD_in: (f,b) (b,b)
pH_in: (b,b,b) (b,f,b)
lessE_in: (b,b) (b,f)
Transforming Prolog into the following Term Rewriting System:
Pi-finite rewrite system:
The TRS R consists of the following rules:

inG_in_ag(T6, tree(T6, T7, T8)) → inG_out_ag(T6, tree(T6, T7, T8))
inG_in_ag(0, tree(s(T22), T15, T16)) → U11_ag(T22, T15, T16, inA_in_g(T15))
inA_in_g(tree(0, T35, T36)) → inA_out_g(tree(0, T35, T36))
inA_in_g(tree(T49, T50, T51)) → U1_g(T49, T50, T51, lessB_in_g(T49))
lessB_in_g(s(T60)) → lessB_out_g(s(T60))
U1_g(T49, T50, T51, lessB_out_g(T49)) → inA_out_g(tree(T49, T50, T51))
U1_g(T49, T50, T51, lessB_out_g(T49)) → U2_g(T49, T50, T51, inA_in_g(T50))
U2_g(T49, T50, T51, inA_out_g(T50)) → inA_out_g(tree(T49, T50, T51))
U11_ag(T22, T15, T16, inA_out_g(T15)) → inG_out_ag(0, tree(s(T22), T15, T16))
inG_in_ag(s(T89), tree(s(T88), T15, T16)) → U12_ag(T89, T88, T15, T16, pF_in_agg(T89, T88, T15))
pF_in_agg(T89, T88, T15) → U5_agg(T89, T88, T15, lessD_in_ag(T89, T88))
lessD_in_ag(0, s(T99)) → lessD_out_ag(0, s(T99))
lessD_in_ag(s(T106), s(T105)) → U3_ag(T106, T105, lessD_in_ag(T106, T105))
U3_ag(T106, T105, lessD_out_ag(T106, T105)) → lessD_out_ag(s(T106), s(T105))
U5_agg(T89, T88, T15, lessD_out_ag(T89, T88)) → pF_out_agg(T89, T88, T15)
pF_in_agg(T92, T88, T15) → U6_agg(T92, T88, T15, lessD_in_ag(T92, T88))
U6_agg(T92, T88, T15, lessD_out_ag(T92, T88)) → U7_agg(T92, T88, T15, inG_in_gg(s(T92), T15))
inG_in_gg(T6, tree(T6, T7, T8)) → inG_out_gg(T6, tree(T6, T7, T8))
inG_in_gg(0, tree(s(T22), T15, T16)) → U11_gg(T22, T15, T16, inA_in_g(T15))
U11_gg(T22, T15, T16, inA_out_g(T15)) → inG_out_gg(0, tree(s(T22), T15, T16))
inG_in_gg(s(T89), tree(s(T88), T15, T16)) → U12_gg(T89, T88, T15, T16, pF_in_ggg(T89, T88, T15))
pF_in_ggg(T89, T88, T15) → U5_ggg(T89, T88, T15, lessD_in_gg(T89, T88))
lessD_in_gg(0, s(T99)) → lessD_out_gg(0, s(T99))
lessD_in_gg(s(T106), s(T105)) → U3_gg(T106, T105, lessD_in_gg(T106, T105))
U3_gg(T106, T105, lessD_out_gg(T106, T105)) → lessD_out_gg(s(T106), s(T105))
U5_ggg(T89, T88, T15, lessD_out_gg(T89, T88)) → pF_out_ggg(T89, T88, T15)
pF_in_ggg(T92, T88, T15) → U6_ggg(T92, T88, T15, lessD_in_gg(T92, T88))
U6_ggg(T92, T88, T15, lessD_out_gg(T92, T88)) → U7_ggg(T92, T88, T15, inG_in_gg(s(T92), T15))
inG_in_gg(T130, tree(T127, T128, T129)) → U13_gg(T130, T127, T128, T129, pH_in_ggg(T127, T130, T129))
pH_in_ggg(T127, T130, T129) → U8_ggg(T127, T130, T129, lessE_in_gg(T127, T130))
lessE_in_gg(0, s(T140)) → lessE_out_gg(0, s(T140))
lessE_in_gg(s(T145), s(T147)) → U4_gg(T145, T147, lessE_in_gg(T145, T147))
U4_gg(T145, T147, lessE_out_gg(T145, T147)) → lessE_out_gg(s(T145), s(T147))
U8_ggg(T127, T130, T129, lessE_out_gg(T127, T130)) → pH_out_ggg(T127, T130, T129)
pH_in_ggg(T127, T133, T129) → U9_ggg(T127, T133, T129, lessE_in_gg(T127, T133))
U9_ggg(T127, T133, T129, lessE_out_gg(T127, T133)) → U10_ggg(T127, T133, T129, inG_in_gg(T133, T129))
inG_in_gg(0, tree(s(T169), T162, T163)) → U14_gg(T169, T162, T163, inA_in_g(T162))
U14_gg(T169, T162, T163, inA_out_g(T162)) → inG_out_gg(0, tree(s(T169), T162, T163))
inG_in_gg(s(T184), tree(s(T183), T162, T163)) → U15_gg(T184, T183, T162, T163, pF_in_ggg(T184, T183, T162))
U15_gg(T184, T183, T162, T163, pF_out_ggg(T184, T183, T162)) → inG_out_gg(s(T184), tree(s(T183), T162, T163))
inG_in_gg(T202, tree(T199, T200, T201)) → U16_gg(T202, T199, T200, T201, pH_in_ggg(T199, T202, T201))
U16_gg(T202, T199, T200, T201, pH_out_ggg(T199, T202, T201)) → inG_out_gg(T202, tree(T199, T200, T201))
inG_in_gg(s(T219), tree(0, T211, T212)) → U17_gg(T219, T211, T212, inG_in_gg(s(T219), T212))
inG_in_gg(s(T232), tree(s(T230), T211, T212)) → U18_gg(T232, T230, T211, T212, lessE_in_gg(T230, T232))
U18_gg(T232, T230, T211, T212, lessE_out_gg(T230, T232)) → inG_out_gg(s(T232), tree(s(T230), T211, T212))
inG_in_gg(s(T235), tree(s(T230), T211, T212)) → U19_gg(T235, T230, T211, T212, lessE_in_gg(T230, T235))
U19_gg(T235, T230, T211, T212, lessE_out_gg(T230, T235)) → U20_gg(T235, T230, T211, T212, inG_in_gg(s(T235), T212))
U20_gg(T235, T230, T211, T212, inG_out_gg(s(T235), T212)) → inG_out_gg(s(T235), tree(s(T230), T211, T212))
U17_gg(T219, T211, T212, inG_out_gg(s(T219), T212)) → inG_out_gg(s(T219), tree(0, T211, T212))
U10_ggg(T127, T133, T129, inG_out_gg(T133, T129)) → pH_out_ggg(T127, T133, T129)
U13_gg(T130, T127, T128, T129, pH_out_ggg(T127, T130, T129)) → inG_out_gg(T130, tree(T127, T128, T129))
U7_ggg(T92, T88, T15, inG_out_gg(s(T92), T15)) → pF_out_ggg(T92, T88, T15)
U12_gg(T89, T88, T15, T16, pF_out_ggg(T89, T88, T15)) → inG_out_gg(s(T89), tree(s(T88), T15, T16))
U7_agg(T92, T88, T15, inG_out_gg(s(T92), T15)) → pF_out_agg(T92, T88, T15)
U12_ag(T89, T88, T15, T16, pF_out_agg(T89, T88, T15)) → inG_out_ag(s(T89), tree(s(T88), T15, T16))
inG_in_ag(T130, tree(T127, T128, T129)) → U13_ag(T130, T127, T128, T129, pH_in_gag(T127, T130, T129))
pH_in_gag(T127, T130, T129) → U8_gag(T127, T130, T129, lessE_in_ga(T127, T130))
lessE_in_ga(0, s(T140)) → lessE_out_ga(0, s(T140))
lessE_in_ga(s(T145), s(T147)) → U4_ga(T145, T147, lessE_in_ga(T145, T147))
U4_ga(T145, T147, lessE_out_ga(T145, T147)) → lessE_out_ga(s(T145), s(T147))
U8_gag(T127, T130, T129, lessE_out_ga(T127, T130)) → pH_out_gag(T127, T130, T129)
pH_in_gag(T127, T133, T129) → U9_gag(T127, T133, T129, lessE_in_ga(T127, T133))
U9_gag(T127, T133, T129, lessE_out_ga(T127, T133)) → U10_gag(T127, T133, T129, inG_in_ag(T133, T129))
inG_in_ag(0, tree(s(T169), T162, T163)) → U14_ag(T169, T162, T163, inA_in_g(T162))
U14_ag(T169, T162, T163, inA_out_g(T162)) → inG_out_ag(0, tree(s(T169), T162, T163))
inG_in_ag(s(T184), tree(s(T183), T162, T163)) → U15_ag(T184, T183, T162, T163, pF_in_agg(T184, T183, T162))
U15_ag(T184, T183, T162, T163, pF_out_agg(T184, T183, T162)) → inG_out_ag(s(T184), tree(s(T183), T162, T163))
inG_in_ag(T202, tree(T199, T200, T201)) → U16_ag(T202, T199, T200, T201, pH_in_gag(T199, T202, T201))
U16_ag(T202, T199, T200, T201, pH_out_gag(T199, T202, T201)) → inG_out_ag(T202, tree(T199, T200, T201))
inG_in_ag(s(T219), tree(0, T211, T212)) → U17_ag(T219, T211, T212, inG_in_ag(s(T219), T212))
inG_in_ag(s(T232), tree(s(T230), T211, T212)) → U18_ag(T232, T230, T211, T212, lessE_in_ga(T230, T232))
U18_ag(T232, T230, T211, T212, lessE_out_ga(T230, T232)) → inG_out_ag(s(T232), tree(s(T230), T211, T212))
inG_in_ag(s(T235), tree(s(T230), T211, T212)) → U19_ag(T235, T230, T211, T212, lessE_in_ga(T230, T235))
U19_ag(T235, T230, T211, T212, lessE_out_ga(T230, T235)) → U20_ag(T235, T230, T211, T212, inG_in_ag(s(T235), T212))
U20_ag(T235, T230, T211, T212, inG_out_ag(s(T235), T212)) → inG_out_ag(s(T235), tree(s(T230), T211, T212))
U17_ag(T219, T211, T212, inG_out_ag(s(T219), T212)) → inG_out_ag(s(T219), tree(0, T211, T212))
U10_gag(T127, T133, T129, inG_out_ag(T133, T129)) → pH_out_gag(T127, T133, T129)
U13_ag(T130, T127, T128, T129, pH_out_gag(T127, T130, T129)) → inG_out_ag(T130, tree(T127, T128, T129))

The argument filtering Pi contains the following mapping:
inG_in_ag(x1, x2)  =  inG_in_ag(x2)
tree(x1, x2, x3)  =  tree(x1, x2, x3)
inG_out_ag(x1, x2)  =  inG_out_ag
s(x1)  =  s(x1)
U11_ag(x1, x2, x3, x4)  =  U11_ag(x4)
inA_in_g(x1)  =  inA_in_g(x1)
0  =  0
inA_out_g(x1)  =  inA_out_g
U1_g(x1, x2, x3, x4)  =  U1_g(x2, x4)
lessB_in_g(x1)  =  lessB_in_g(x1)
lessB_out_g(x1)  =  lessB_out_g
U2_g(x1, x2, x3, x4)  =  U2_g(x4)
U12_ag(x1, x2, x3, x4, x5)  =  U12_ag(x5)
pF_in_agg(x1, x2, x3)  =  pF_in_agg(x2, x3)
U5_agg(x1, x2, x3, x4)  =  U5_agg(x4)
lessD_in_ag(x1, x2)  =  lessD_in_ag(x2)
lessD_out_ag(x1, x2)  =  lessD_out_ag(x1)
U3_ag(x1, x2, x3)  =  U3_ag(x3)
pF_out_agg(x1, x2, x3)  =  pF_out_agg(x1)
U6_agg(x1, x2, x3, x4)  =  U6_agg(x3, x4)
U7_agg(x1, x2, x3, x4)  =  U7_agg(x1, x4)
inG_in_gg(x1, x2)  =  inG_in_gg(x1, x2)
inG_out_gg(x1, x2)  =  inG_out_gg
U11_gg(x1, x2, x3, x4)  =  U11_gg(x4)
U12_gg(x1, x2, x3, x4, x5)  =  U12_gg(x5)
pF_in_ggg(x1, x2, x3)  =  pF_in_ggg(x1, x2, x3)
U5_ggg(x1, x2, x3, x4)  =  U5_ggg(x4)
lessD_in_gg(x1, x2)  =  lessD_in_gg(x1, x2)
lessD_out_gg(x1, x2)  =  lessD_out_gg
U3_gg(x1, x2, x3)  =  U3_gg(x3)
pF_out_ggg(x1, x2, x3)  =  pF_out_ggg
U6_ggg(x1, x2, x3, x4)  =  U6_ggg(x1, x3, x4)
U7_ggg(x1, x2, x3, x4)  =  U7_ggg(x4)
U13_gg(x1, x2, x3, x4, x5)  =  U13_gg(x5)
pH_in_ggg(x1, x2, x3)  =  pH_in_ggg(x1, x2, x3)
U8_ggg(x1, x2, x3, x4)  =  U8_ggg(x4)
lessE_in_gg(x1, x2)  =  lessE_in_gg(x1, x2)
lessE_out_gg(x1, x2)  =  lessE_out_gg
U4_gg(x1, x2, x3)  =  U4_gg(x3)
pH_out_ggg(x1, x2, x3)  =  pH_out_ggg
U9_ggg(x1, x2, x3, x4)  =  U9_ggg(x2, x3, x4)
U10_ggg(x1, x2, x3, x4)  =  U10_ggg(x4)
U14_gg(x1, x2, x3, x4)  =  U14_gg(x4)
U15_gg(x1, x2, x3, x4, x5)  =  U15_gg(x5)
U16_gg(x1, x2, x3, x4, x5)  =  U16_gg(x5)
U17_gg(x1, x2, x3, x4)  =  U17_gg(x4)
U18_gg(x1, x2, x3, x4, x5)  =  U18_gg(x5)
U19_gg(x1, x2, x3, x4, x5)  =  U19_gg(x1, x4, x5)
U20_gg(x1, x2, x3, x4, x5)  =  U20_gg(x5)
U13_ag(x1, x2, x3, x4, x5)  =  U13_ag(x5)
pH_in_gag(x1, x2, x3)  =  pH_in_gag(x1, x3)
U8_gag(x1, x2, x3, x4)  =  U8_gag(x4)
lessE_in_ga(x1, x2)  =  lessE_in_ga(x1)
lessE_out_ga(x1, x2)  =  lessE_out_ga
U4_ga(x1, x2, x3)  =  U4_ga(x3)
pH_out_gag(x1, x2, x3)  =  pH_out_gag
U9_gag(x1, x2, x3, x4)  =  U9_gag(x3, x4)
U10_gag(x1, x2, x3, x4)  =  U10_gag(x4)
U14_ag(x1, x2, x3, x4)  =  U14_ag(x4)
U15_ag(x1, x2, x3, x4, x5)  =  U15_ag(x5)
U16_ag(x1, x2, x3, x4, x5)  =  U16_ag(x5)
U17_ag(x1, x2, x3, x4)  =  U17_ag(x4)
U18_ag(x1, x2, x3, x4, x5)  =  U18_ag(x5)
U19_ag(x1, x2, x3, x4, x5)  =  U19_ag(x4, x5)
U20_ag(x1, x2, x3, x4, x5)  =  U20_ag(x5)

Infinitary Constructor Rewriting Termination of PiTRS implies Termination of Prolog

(4) Obligation:

Pi-finite rewrite system:
The TRS R consists of the following rules:

inG_in_ag(T6, tree(T6, T7, T8)) → inG_out_ag(T6, tree(T6, T7, T8))
inG_in_ag(0, tree(s(T22), T15, T16)) → U11_ag(T22, T15, T16, inA_in_g(T15))
inA_in_g(tree(0, T35, T36)) → inA_out_g(tree(0, T35, T36))
inA_in_g(tree(T49, T50, T51)) → U1_g(T49, T50, T51, lessB_in_g(T49))
lessB_in_g(s(T60)) → lessB_out_g(s(T60))
U1_g(T49, T50, T51, lessB_out_g(T49)) → inA_out_g(tree(T49, T50, T51))
U1_g(T49, T50, T51, lessB_out_g(T49)) → U2_g(T49, T50, T51, inA_in_g(T50))
U2_g(T49, T50, T51, inA_out_g(T50)) → inA_out_g(tree(T49, T50, T51))
U11_ag(T22, T15, T16, inA_out_g(T15)) → inG_out_ag(0, tree(s(T22), T15, T16))
inG_in_ag(s(T89), tree(s(T88), T15, T16)) → U12_ag(T89, T88, T15, T16, pF_in_agg(T89, T88, T15))
pF_in_agg(T89, T88, T15) → U5_agg(T89, T88, T15, lessD_in_ag(T89, T88))
lessD_in_ag(0, s(T99)) → lessD_out_ag(0, s(T99))
lessD_in_ag(s(T106), s(T105)) → U3_ag(T106, T105, lessD_in_ag(T106, T105))
U3_ag(T106, T105, lessD_out_ag(T106, T105)) → lessD_out_ag(s(T106), s(T105))
U5_agg(T89, T88, T15, lessD_out_ag(T89, T88)) → pF_out_agg(T89, T88, T15)
pF_in_agg(T92, T88, T15) → U6_agg(T92, T88, T15, lessD_in_ag(T92, T88))
U6_agg(T92, T88, T15, lessD_out_ag(T92, T88)) → U7_agg(T92, T88, T15, inG_in_gg(s(T92), T15))
inG_in_gg(T6, tree(T6, T7, T8)) → inG_out_gg(T6, tree(T6, T7, T8))
inG_in_gg(0, tree(s(T22), T15, T16)) → U11_gg(T22, T15, T16, inA_in_g(T15))
U11_gg(T22, T15, T16, inA_out_g(T15)) → inG_out_gg(0, tree(s(T22), T15, T16))
inG_in_gg(s(T89), tree(s(T88), T15, T16)) → U12_gg(T89, T88, T15, T16, pF_in_ggg(T89, T88, T15))
pF_in_ggg(T89, T88, T15) → U5_ggg(T89, T88, T15, lessD_in_gg(T89, T88))
lessD_in_gg(0, s(T99)) → lessD_out_gg(0, s(T99))
lessD_in_gg(s(T106), s(T105)) → U3_gg(T106, T105, lessD_in_gg(T106, T105))
U3_gg(T106, T105, lessD_out_gg(T106, T105)) → lessD_out_gg(s(T106), s(T105))
U5_ggg(T89, T88, T15, lessD_out_gg(T89, T88)) → pF_out_ggg(T89, T88, T15)
pF_in_ggg(T92, T88, T15) → U6_ggg(T92, T88, T15, lessD_in_gg(T92, T88))
U6_ggg(T92, T88, T15, lessD_out_gg(T92, T88)) → U7_ggg(T92, T88, T15, inG_in_gg(s(T92), T15))
inG_in_gg(T130, tree(T127, T128, T129)) → U13_gg(T130, T127, T128, T129, pH_in_ggg(T127, T130, T129))
pH_in_ggg(T127, T130, T129) → U8_ggg(T127, T130, T129, lessE_in_gg(T127, T130))
lessE_in_gg(0, s(T140)) → lessE_out_gg(0, s(T140))
lessE_in_gg(s(T145), s(T147)) → U4_gg(T145, T147, lessE_in_gg(T145, T147))
U4_gg(T145, T147, lessE_out_gg(T145, T147)) → lessE_out_gg(s(T145), s(T147))
U8_ggg(T127, T130, T129, lessE_out_gg(T127, T130)) → pH_out_ggg(T127, T130, T129)
pH_in_ggg(T127, T133, T129) → U9_ggg(T127, T133, T129, lessE_in_gg(T127, T133))
U9_ggg(T127, T133, T129, lessE_out_gg(T127, T133)) → U10_ggg(T127, T133, T129, inG_in_gg(T133, T129))
inG_in_gg(0, tree(s(T169), T162, T163)) → U14_gg(T169, T162, T163, inA_in_g(T162))
U14_gg(T169, T162, T163, inA_out_g(T162)) → inG_out_gg(0, tree(s(T169), T162, T163))
inG_in_gg(s(T184), tree(s(T183), T162, T163)) → U15_gg(T184, T183, T162, T163, pF_in_ggg(T184, T183, T162))
U15_gg(T184, T183, T162, T163, pF_out_ggg(T184, T183, T162)) → inG_out_gg(s(T184), tree(s(T183), T162, T163))
inG_in_gg(T202, tree(T199, T200, T201)) → U16_gg(T202, T199, T200, T201, pH_in_ggg(T199, T202, T201))
U16_gg(T202, T199, T200, T201, pH_out_ggg(T199, T202, T201)) → inG_out_gg(T202, tree(T199, T200, T201))
inG_in_gg(s(T219), tree(0, T211, T212)) → U17_gg(T219, T211, T212, inG_in_gg(s(T219), T212))
inG_in_gg(s(T232), tree(s(T230), T211, T212)) → U18_gg(T232, T230, T211, T212, lessE_in_gg(T230, T232))
U18_gg(T232, T230, T211, T212, lessE_out_gg(T230, T232)) → inG_out_gg(s(T232), tree(s(T230), T211, T212))
inG_in_gg(s(T235), tree(s(T230), T211, T212)) → U19_gg(T235, T230, T211, T212, lessE_in_gg(T230, T235))
U19_gg(T235, T230, T211, T212, lessE_out_gg(T230, T235)) → U20_gg(T235, T230, T211, T212, inG_in_gg(s(T235), T212))
U20_gg(T235, T230, T211, T212, inG_out_gg(s(T235), T212)) → inG_out_gg(s(T235), tree(s(T230), T211, T212))
U17_gg(T219, T211, T212, inG_out_gg(s(T219), T212)) → inG_out_gg(s(T219), tree(0, T211, T212))
U10_ggg(T127, T133, T129, inG_out_gg(T133, T129)) → pH_out_ggg(T127, T133, T129)
U13_gg(T130, T127, T128, T129, pH_out_ggg(T127, T130, T129)) → inG_out_gg(T130, tree(T127, T128, T129))
U7_ggg(T92, T88, T15, inG_out_gg(s(T92), T15)) → pF_out_ggg(T92, T88, T15)
U12_gg(T89, T88, T15, T16, pF_out_ggg(T89, T88, T15)) → inG_out_gg(s(T89), tree(s(T88), T15, T16))
U7_agg(T92, T88, T15, inG_out_gg(s(T92), T15)) → pF_out_agg(T92, T88, T15)
U12_ag(T89, T88, T15, T16, pF_out_agg(T89, T88, T15)) → inG_out_ag(s(T89), tree(s(T88), T15, T16))
inG_in_ag(T130, tree(T127, T128, T129)) → U13_ag(T130, T127, T128, T129, pH_in_gag(T127, T130, T129))
pH_in_gag(T127, T130, T129) → U8_gag(T127, T130, T129, lessE_in_ga(T127, T130))
lessE_in_ga(0, s(T140)) → lessE_out_ga(0, s(T140))
lessE_in_ga(s(T145), s(T147)) → U4_ga(T145, T147, lessE_in_ga(T145, T147))
U4_ga(T145, T147, lessE_out_ga(T145, T147)) → lessE_out_ga(s(T145), s(T147))
U8_gag(T127, T130, T129, lessE_out_ga(T127, T130)) → pH_out_gag(T127, T130, T129)
pH_in_gag(T127, T133, T129) → U9_gag(T127, T133, T129, lessE_in_ga(T127, T133))
U9_gag(T127, T133, T129, lessE_out_ga(T127, T133)) → U10_gag(T127, T133, T129, inG_in_ag(T133, T129))
inG_in_ag(0, tree(s(T169), T162, T163)) → U14_ag(T169, T162, T163, inA_in_g(T162))
U14_ag(T169, T162, T163, inA_out_g(T162)) → inG_out_ag(0, tree(s(T169), T162, T163))
inG_in_ag(s(T184), tree(s(T183), T162, T163)) → U15_ag(T184, T183, T162, T163, pF_in_agg(T184, T183, T162))
U15_ag(T184, T183, T162, T163, pF_out_agg(T184, T183, T162)) → inG_out_ag(s(T184), tree(s(T183), T162, T163))
inG_in_ag(T202, tree(T199, T200, T201)) → U16_ag(T202, T199, T200, T201, pH_in_gag(T199, T202, T201))
U16_ag(T202, T199, T200, T201, pH_out_gag(T199, T202, T201)) → inG_out_ag(T202, tree(T199, T200, T201))
inG_in_ag(s(T219), tree(0, T211, T212)) → U17_ag(T219, T211, T212, inG_in_ag(s(T219), T212))
inG_in_ag(s(T232), tree(s(T230), T211, T212)) → U18_ag(T232, T230, T211, T212, lessE_in_ga(T230, T232))
U18_ag(T232, T230, T211, T212, lessE_out_ga(T230, T232)) → inG_out_ag(s(T232), tree(s(T230), T211, T212))
inG_in_ag(s(T235), tree(s(T230), T211, T212)) → U19_ag(T235, T230, T211, T212, lessE_in_ga(T230, T235))
U19_ag(T235, T230, T211, T212, lessE_out_ga(T230, T235)) → U20_ag(T235, T230, T211, T212, inG_in_ag(s(T235), T212))
U20_ag(T235, T230, T211, T212, inG_out_ag(s(T235), T212)) → inG_out_ag(s(T235), tree(s(T230), T211, T212))
U17_ag(T219, T211, T212, inG_out_ag(s(T219), T212)) → inG_out_ag(s(T219), tree(0, T211, T212))
U10_gag(T127, T133, T129, inG_out_ag(T133, T129)) → pH_out_gag(T127, T133, T129)
U13_ag(T130, T127, T128, T129, pH_out_gag(T127, T130, T129)) → inG_out_ag(T130, tree(T127, T128, T129))

The argument filtering Pi contains the following mapping:
inG_in_ag(x1, x2)  =  inG_in_ag(x2)
tree(x1, x2, x3)  =  tree(x1, x2, x3)
inG_out_ag(x1, x2)  =  inG_out_ag
s(x1)  =  s(x1)
U11_ag(x1, x2, x3, x4)  =  U11_ag(x4)
inA_in_g(x1)  =  inA_in_g(x1)
0  =  0
inA_out_g(x1)  =  inA_out_g
U1_g(x1, x2, x3, x4)  =  U1_g(x2, x4)
lessB_in_g(x1)  =  lessB_in_g(x1)
lessB_out_g(x1)  =  lessB_out_g
U2_g(x1, x2, x3, x4)  =  U2_g(x4)
U12_ag(x1, x2, x3, x4, x5)  =  U12_ag(x5)
pF_in_agg(x1, x2, x3)  =  pF_in_agg(x2, x3)
U5_agg(x1, x2, x3, x4)  =  U5_agg(x4)
lessD_in_ag(x1, x2)  =  lessD_in_ag(x2)
lessD_out_ag(x1, x2)  =  lessD_out_ag(x1)
U3_ag(x1, x2, x3)  =  U3_ag(x3)
pF_out_agg(x1, x2, x3)  =  pF_out_agg(x1)
U6_agg(x1, x2, x3, x4)  =  U6_agg(x3, x4)
U7_agg(x1, x2, x3, x4)  =  U7_agg(x1, x4)
inG_in_gg(x1, x2)  =  inG_in_gg(x1, x2)
inG_out_gg(x1, x2)  =  inG_out_gg
U11_gg(x1, x2, x3, x4)  =  U11_gg(x4)
U12_gg(x1, x2, x3, x4, x5)  =  U12_gg(x5)
pF_in_ggg(x1, x2, x3)  =  pF_in_ggg(x1, x2, x3)
U5_ggg(x1, x2, x3, x4)  =  U5_ggg(x4)
lessD_in_gg(x1, x2)  =  lessD_in_gg(x1, x2)
lessD_out_gg(x1, x2)  =  lessD_out_gg
U3_gg(x1, x2, x3)  =  U3_gg(x3)
pF_out_ggg(x1, x2, x3)  =  pF_out_ggg
U6_ggg(x1, x2, x3, x4)  =  U6_ggg(x1, x3, x4)
U7_ggg(x1, x2, x3, x4)  =  U7_ggg(x4)
U13_gg(x1, x2, x3, x4, x5)  =  U13_gg(x5)
pH_in_ggg(x1, x2, x3)  =  pH_in_ggg(x1, x2, x3)
U8_ggg(x1, x2, x3, x4)  =  U8_ggg(x4)
lessE_in_gg(x1, x2)  =  lessE_in_gg(x1, x2)
lessE_out_gg(x1, x2)  =  lessE_out_gg
U4_gg(x1, x2, x3)  =  U4_gg(x3)
pH_out_ggg(x1, x2, x3)  =  pH_out_ggg
U9_ggg(x1, x2, x3, x4)  =  U9_ggg(x2, x3, x4)
U10_ggg(x1, x2, x3, x4)  =  U10_ggg(x4)
U14_gg(x1, x2, x3, x4)  =  U14_gg(x4)
U15_gg(x1, x2, x3, x4, x5)  =  U15_gg(x5)
U16_gg(x1, x2, x3, x4, x5)  =  U16_gg(x5)
U17_gg(x1, x2, x3, x4)  =  U17_gg(x4)
U18_gg(x1, x2, x3, x4, x5)  =  U18_gg(x5)
U19_gg(x1, x2, x3, x4, x5)  =  U19_gg(x1, x4, x5)
U20_gg(x1, x2, x3, x4, x5)  =  U20_gg(x5)
U13_ag(x1, x2, x3, x4, x5)  =  U13_ag(x5)
pH_in_gag(x1, x2, x3)  =  pH_in_gag(x1, x3)
U8_gag(x1, x2, x3, x4)  =  U8_gag(x4)
lessE_in_ga(x1, x2)  =  lessE_in_ga(x1)
lessE_out_ga(x1, x2)  =  lessE_out_ga
U4_ga(x1, x2, x3)  =  U4_ga(x3)
pH_out_gag(x1, x2, x3)  =  pH_out_gag
U9_gag(x1, x2, x3, x4)  =  U9_gag(x3, x4)
U10_gag(x1, x2, x3, x4)  =  U10_gag(x4)
U14_ag(x1, x2, x3, x4)  =  U14_ag(x4)
U15_ag(x1, x2, x3, x4, x5)  =  U15_ag(x5)
U16_ag(x1, x2, x3, x4, x5)  =  U16_ag(x5)
U17_ag(x1, x2, x3, x4)  =  U17_ag(x4)
U18_ag(x1, x2, x3, x4, x5)  =  U18_ag(x5)
U19_ag(x1, x2, x3, x4, x5)  =  U19_ag(x4, x5)
U20_ag(x1, x2, x3, x4, x5)  =  U20_ag(x5)

(5) DependencyPairsProof (EQUIVALENT transformation)

Using Dependency Pairs [AG00,LOPSTR] we result in the following initial DP problem:
Pi DP problem:
The TRS P consists of the following rules:

ING_IN_AG(0, tree(s(T22), T15, T16)) → U11_AG(T22, T15, T16, inA_in_g(T15))
ING_IN_AG(0, tree(s(T22), T15, T16)) → INA_IN_G(T15)
INA_IN_G(tree(T49, T50, T51)) → U1_G(T49, T50, T51, lessB_in_g(T49))
INA_IN_G(tree(T49, T50, T51)) → LESSB_IN_G(T49)
U1_G(T49, T50, T51, lessB_out_g(T49)) → U2_G(T49, T50, T51, inA_in_g(T50))
U1_G(T49, T50, T51, lessB_out_g(T49)) → INA_IN_G(T50)
ING_IN_AG(s(T89), tree(s(T88), T15, T16)) → U12_AG(T89, T88, T15, T16, pF_in_agg(T89, T88, T15))
ING_IN_AG(s(T89), tree(s(T88), T15, T16)) → PF_IN_AGG(T89, T88, T15)
PF_IN_AGG(T89, T88, T15) → U5_AGG(T89, T88, T15, lessD_in_ag(T89, T88))
PF_IN_AGG(T89, T88, T15) → LESSD_IN_AG(T89, T88)
LESSD_IN_AG(s(T106), s(T105)) → U3_AG(T106, T105, lessD_in_ag(T106, T105))
LESSD_IN_AG(s(T106), s(T105)) → LESSD_IN_AG(T106, T105)
PF_IN_AGG(T92, T88, T15) → U6_AGG(T92, T88, T15, lessD_in_ag(T92, T88))
U6_AGG(T92, T88, T15, lessD_out_ag(T92, T88)) → U7_AGG(T92, T88, T15, inG_in_gg(s(T92), T15))
U6_AGG(T92, T88, T15, lessD_out_ag(T92, T88)) → ING_IN_GG(s(T92), T15)
ING_IN_GG(0, tree(s(T22), T15, T16)) → U11_GG(T22, T15, T16, inA_in_g(T15))
ING_IN_GG(0, tree(s(T22), T15, T16)) → INA_IN_G(T15)
ING_IN_GG(s(T89), tree(s(T88), T15, T16)) → U12_GG(T89, T88, T15, T16, pF_in_ggg(T89, T88, T15))
ING_IN_GG(s(T89), tree(s(T88), T15, T16)) → PF_IN_GGG(T89, T88, T15)
PF_IN_GGG(T89, T88, T15) → U5_GGG(T89, T88, T15, lessD_in_gg(T89, T88))
PF_IN_GGG(T89, T88, T15) → LESSD_IN_GG(T89, T88)
LESSD_IN_GG(s(T106), s(T105)) → U3_GG(T106, T105, lessD_in_gg(T106, T105))
LESSD_IN_GG(s(T106), s(T105)) → LESSD_IN_GG(T106, T105)
PF_IN_GGG(T92, T88, T15) → U6_GGG(T92, T88, T15, lessD_in_gg(T92, T88))
U6_GGG(T92, T88, T15, lessD_out_gg(T92, T88)) → U7_GGG(T92, T88, T15, inG_in_gg(s(T92), T15))
U6_GGG(T92, T88, T15, lessD_out_gg(T92, T88)) → ING_IN_GG(s(T92), T15)
ING_IN_GG(T130, tree(T127, T128, T129)) → U13_GG(T130, T127, T128, T129, pH_in_ggg(T127, T130, T129))
ING_IN_GG(T130, tree(T127, T128, T129)) → PH_IN_GGG(T127, T130, T129)
PH_IN_GGG(T127, T130, T129) → U8_GGG(T127, T130, T129, lessE_in_gg(T127, T130))
PH_IN_GGG(T127, T130, T129) → LESSE_IN_GG(T127, T130)
LESSE_IN_GG(s(T145), s(T147)) → U4_GG(T145, T147, lessE_in_gg(T145, T147))
LESSE_IN_GG(s(T145), s(T147)) → LESSE_IN_GG(T145, T147)
PH_IN_GGG(T127, T133, T129) → U9_GGG(T127, T133, T129, lessE_in_gg(T127, T133))
U9_GGG(T127, T133, T129, lessE_out_gg(T127, T133)) → U10_GGG(T127, T133, T129, inG_in_gg(T133, T129))
U9_GGG(T127, T133, T129, lessE_out_gg(T127, T133)) → ING_IN_GG(T133, T129)
ING_IN_GG(0, tree(s(T169), T162, T163)) → U14_GG(T169, T162, T163, inA_in_g(T162))
ING_IN_GG(s(T184), tree(s(T183), T162, T163)) → U15_GG(T184, T183, T162, T163, pF_in_ggg(T184, T183, T162))
ING_IN_GG(T202, tree(T199, T200, T201)) → U16_GG(T202, T199, T200, T201, pH_in_ggg(T199, T202, T201))
ING_IN_GG(s(T219), tree(0, T211, T212)) → U17_GG(T219, T211, T212, inG_in_gg(s(T219), T212))
ING_IN_GG(s(T219), tree(0, T211, T212)) → ING_IN_GG(s(T219), T212)
ING_IN_GG(s(T232), tree(s(T230), T211, T212)) → U18_GG(T232, T230, T211, T212, lessE_in_gg(T230, T232))
ING_IN_GG(s(T232), tree(s(T230), T211, T212)) → LESSE_IN_GG(T230, T232)
ING_IN_GG(s(T235), tree(s(T230), T211, T212)) → U19_GG(T235, T230, T211, T212, lessE_in_gg(T230, T235))
U19_GG(T235, T230, T211, T212, lessE_out_gg(T230, T235)) → U20_GG(T235, T230, T211, T212, inG_in_gg(s(T235), T212))
U19_GG(T235, T230, T211, T212, lessE_out_gg(T230, T235)) → ING_IN_GG(s(T235), T212)
ING_IN_AG(T130, tree(T127, T128, T129)) → U13_AG(T130, T127, T128, T129, pH_in_gag(T127, T130, T129))
ING_IN_AG(T130, tree(T127, T128, T129)) → PH_IN_GAG(T127, T130, T129)
PH_IN_GAG(T127, T130, T129) → U8_GAG(T127, T130, T129, lessE_in_ga(T127, T130))
PH_IN_GAG(T127, T130, T129) → LESSE_IN_GA(T127, T130)
LESSE_IN_GA(s(T145), s(T147)) → U4_GA(T145, T147, lessE_in_ga(T145, T147))
LESSE_IN_GA(s(T145), s(T147)) → LESSE_IN_GA(T145, T147)
PH_IN_GAG(T127, T133, T129) → U9_GAG(T127, T133, T129, lessE_in_ga(T127, T133))
U9_GAG(T127, T133, T129, lessE_out_ga(T127, T133)) → U10_GAG(T127, T133, T129, inG_in_ag(T133, T129))
U9_GAG(T127, T133, T129, lessE_out_ga(T127, T133)) → ING_IN_AG(T133, T129)
ING_IN_AG(0, tree(s(T169), T162, T163)) → U14_AG(T169, T162, T163, inA_in_g(T162))
ING_IN_AG(s(T184), tree(s(T183), T162, T163)) → U15_AG(T184, T183, T162, T163, pF_in_agg(T184, T183, T162))
ING_IN_AG(T202, tree(T199, T200, T201)) → U16_AG(T202, T199, T200, T201, pH_in_gag(T199, T202, T201))
ING_IN_AG(s(T219), tree(0, T211, T212)) → U17_AG(T219, T211, T212, inG_in_ag(s(T219), T212))
ING_IN_AG(s(T219), tree(0, T211, T212)) → ING_IN_AG(s(T219), T212)
ING_IN_AG(s(T232), tree(s(T230), T211, T212)) → U18_AG(T232, T230, T211, T212, lessE_in_ga(T230, T232))
ING_IN_AG(s(T232), tree(s(T230), T211, T212)) → LESSE_IN_GA(T230, T232)
ING_IN_AG(s(T235), tree(s(T230), T211, T212)) → U19_AG(T235, T230, T211, T212, lessE_in_ga(T230, T235))
U19_AG(T235, T230, T211, T212, lessE_out_ga(T230, T235)) → U20_AG(T235, T230, T211, T212, inG_in_ag(s(T235), T212))
U19_AG(T235, T230, T211, T212, lessE_out_ga(T230, T235)) → ING_IN_AG(s(T235), T212)

The TRS R consists of the following rules:

inG_in_ag(T6, tree(T6, T7, T8)) → inG_out_ag(T6, tree(T6, T7, T8))
inG_in_ag(0, tree(s(T22), T15, T16)) → U11_ag(T22, T15, T16, inA_in_g(T15))
inA_in_g(tree(0, T35, T36)) → inA_out_g(tree(0, T35, T36))
inA_in_g(tree(T49, T50, T51)) → U1_g(T49, T50, T51, lessB_in_g(T49))
lessB_in_g(s(T60)) → lessB_out_g(s(T60))
U1_g(T49, T50, T51, lessB_out_g(T49)) → inA_out_g(tree(T49, T50, T51))
U1_g(T49, T50, T51, lessB_out_g(T49)) → U2_g(T49, T50, T51, inA_in_g(T50))
U2_g(T49, T50, T51, inA_out_g(T50)) → inA_out_g(tree(T49, T50, T51))
U11_ag(T22, T15, T16, inA_out_g(T15)) → inG_out_ag(0, tree(s(T22), T15, T16))
inG_in_ag(s(T89), tree(s(T88), T15, T16)) → U12_ag(T89, T88, T15, T16, pF_in_agg(T89, T88, T15))
pF_in_agg(T89, T88, T15) → U5_agg(T89, T88, T15, lessD_in_ag(T89, T88))
lessD_in_ag(0, s(T99)) → lessD_out_ag(0, s(T99))
lessD_in_ag(s(T106), s(T105)) → U3_ag(T106, T105, lessD_in_ag(T106, T105))
U3_ag(T106, T105, lessD_out_ag(T106, T105)) → lessD_out_ag(s(T106), s(T105))
U5_agg(T89, T88, T15, lessD_out_ag(T89, T88)) → pF_out_agg(T89, T88, T15)
pF_in_agg(T92, T88, T15) → U6_agg(T92, T88, T15, lessD_in_ag(T92, T88))
U6_agg(T92, T88, T15, lessD_out_ag(T92, T88)) → U7_agg(T92, T88, T15, inG_in_gg(s(T92), T15))
inG_in_gg(T6, tree(T6, T7, T8)) → inG_out_gg(T6, tree(T6, T7, T8))
inG_in_gg(0, tree(s(T22), T15, T16)) → U11_gg(T22, T15, T16, inA_in_g(T15))
U11_gg(T22, T15, T16, inA_out_g(T15)) → inG_out_gg(0, tree(s(T22), T15, T16))
inG_in_gg(s(T89), tree(s(T88), T15, T16)) → U12_gg(T89, T88, T15, T16, pF_in_ggg(T89, T88, T15))
pF_in_ggg(T89, T88, T15) → U5_ggg(T89, T88, T15, lessD_in_gg(T89, T88))
lessD_in_gg(0, s(T99)) → lessD_out_gg(0, s(T99))
lessD_in_gg(s(T106), s(T105)) → U3_gg(T106, T105, lessD_in_gg(T106, T105))
U3_gg(T106, T105, lessD_out_gg(T106, T105)) → lessD_out_gg(s(T106), s(T105))
U5_ggg(T89, T88, T15, lessD_out_gg(T89, T88)) → pF_out_ggg(T89, T88, T15)
pF_in_ggg(T92, T88, T15) → U6_ggg(T92, T88, T15, lessD_in_gg(T92, T88))
U6_ggg(T92, T88, T15, lessD_out_gg(T92, T88)) → U7_ggg(T92, T88, T15, inG_in_gg(s(T92), T15))
inG_in_gg(T130, tree(T127, T128, T129)) → U13_gg(T130, T127, T128, T129, pH_in_ggg(T127, T130, T129))
pH_in_ggg(T127, T130, T129) → U8_ggg(T127, T130, T129, lessE_in_gg(T127, T130))
lessE_in_gg(0, s(T140)) → lessE_out_gg(0, s(T140))
lessE_in_gg(s(T145), s(T147)) → U4_gg(T145, T147, lessE_in_gg(T145, T147))
U4_gg(T145, T147, lessE_out_gg(T145, T147)) → lessE_out_gg(s(T145), s(T147))
U8_ggg(T127, T130, T129, lessE_out_gg(T127, T130)) → pH_out_ggg(T127, T130, T129)
pH_in_ggg(T127, T133, T129) → U9_ggg(T127, T133, T129, lessE_in_gg(T127, T133))
U9_ggg(T127, T133, T129, lessE_out_gg(T127, T133)) → U10_ggg(T127, T133, T129, inG_in_gg(T133, T129))
inG_in_gg(0, tree(s(T169), T162, T163)) → U14_gg(T169, T162, T163, inA_in_g(T162))
U14_gg(T169, T162, T163, inA_out_g(T162)) → inG_out_gg(0, tree(s(T169), T162, T163))
inG_in_gg(s(T184), tree(s(T183), T162, T163)) → U15_gg(T184, T183, T162, T163, pF_in_ggg(T184, T183, T162))
U15_gg(T184, T183, T162, T163, pF_out_ggg(T184, T183, T162)) → inG_out_gg(s(T184), tree(s(T183), T162, T163))
inG_in_gg(T202, tree(T199, T200, T201)) → U16_gg(T202, T199, T200, T201, pH_in_ggg(T199, T202, T201))
U16_gg(T202, T199, T200, T201, pH_out_ggg(T199, T202, T201)) → inG_out_gg(T202, tree(T199, T200, T201))
inG_in_gg(s(T219), tree(0, T211, T212)) → U17_gg(T219, T211, T212, inG_in_gg(s(T219), T212))
inG_in_gg(s(T232), tree(s(T230), T211, T212)) → U18_gg(T232, T230, T211, T212, lessE_in_gg(T230, T232))
U18_gg(T232, T230, T211, T212, lessE_out_gg(T230, T232)) → inG_out_gg(s(T232), tree(s(T230), T211, T212))
inG_in_gg(s(T235), tree(s(T230), T211, T212)) → U19_gg(T235, T230, T211, T212, lessE_in_gg(T230, T235))
U19_gg(T235, T230, T211, T212, lessE_out_gg(T230, T235)) → U20_gg(T235, T230, T211, T212, inG_in_gg(s(T235), T212))
U20_gg(T235, T230, T211, T212, inG_out_gg(s(T235), T212)) → inG_out_gg(s(T235), tree(s(T230), T211, T212))
U17_gg(T219, T211, T212, inG_out_gg(s(T219), T212)) → inG_out_gg(s(T219), tree(0, T211, T212))
U10_ggg(T127, T133, T129, inG_out_gg(T133, T129)) → pH_out_ggg(T127, T133, T129)
U13_gg(T130, T127, T128, T129, pH_out_ggg(T127, T130, T129)) → inG_out_gg(T130, tree(T127, T128, T129))
U7_ggg(T92, T88, T15, inG_out_gg(s(T92), T15)) → pF_out_ggg(T92, T88, T15)
U12_gg(T89, T88, T15, T16, pF_out_ggg(T89, T88, T15)) → inG_out_gg(s(T89), tree(s(T88), T15, T16))
U7_agg(T92, T88, T15, inG_out_gg(s(T92), T15)) → pF_out_agg(T92, T88, T15)
U12_ag(T89, T88, T15, T16, pF_out_agg(T89, T88, T15)) → inG_out_ag(s(T89), tree(s(T88), T15, T16))
inG_in_ag(T130, tree(T127, T128, T129)) → U13_ag(T130, T127, T128, T129, pH_in_gag(T127, T130, T129))
pH_in_gag(T127, T130, T129) → U8_gag(T127, T130, T129, lessE_in_ga(T127, T130))
lessE_in_ga(0, s(T140)) → lessE_out_ga(0, s(T140))
lessE_in_ga(s(T145), s(T147)) → U4_ga(T145, T147, lessE_in_ga(T145, T147))
U4_ga(T145, T147, lessE_out_ga(T145, T147)) → lessE_out_ga(s(T145), s(T147))
U8_gag(T127, T130, T129, lessE_out_ga(T127, T130)) → pH_out_gag(T127, T130, T129)
pH_in_gag(T127, T133, T129) → U9_gag(T127, T133, T129, lessE_in_ga(T127, T133))
U9_gag(T127, T133, T129, lessE_out_ga(T127, T133)) → U10_gag(T127, T133, T129, inG_in_ag(T133, T129))
inG_in_ag(0, tree(s(T169), T162, T163)) → U14_ag(T169, T162, T163, inA_in_g(T162))
U14_ag(T169, T162, T163, inA_out_g(T162)) → inG_out_ag(0, tree(s(T169), T162, T163))
inG_in_ag(s(T184), tree(s(T183), T162, T163)) → U15_ag(T184, T183, T162, T163, pF_in_agg(T184, T183, T162))
U15_ag(T184, T183, T162, T163, pF_out_agg(T184, T183, T162)) → inG_out_ag(s(T184), tree(s(T183), T162, T163))
inG_in_ag(T202, tree(T199, T200, T201)) → U16_ag(T202, T199, T200, T201, pH_in_gag(T199, T202, T201))
U16_ag(T202, T199, T200, T201, pH_out_gag(T199, T202, T201)) → inG_out_ag(T202, tree(T199, T200, T201))
inG_in_ag(s(T219), tree(0, T211, T212)) → U17_ag(T219, T211, T212, inG_in_ag(s(T219), T212))
inG_in_ag(s(T232), tree(s(T230), T211, T212)) → U18_ag(T232, T230, T211, T212, lessE_in_ga(T230, T232))
U18_ag(T232, T230, T211, T212, lessE_out_ga(T230, T232)) → inG_out_ag(s(T232), tree(s(T230), T211, T212))
inG_in_ag(s(T235), tree(s(T230), T211, T212)) → U19_ag(T235, T230, T211, T212, lessE_in_ga(T230, T235))
U19_ag(T235, T230, T211, T212, lessE_out_ga(T230, T235)) → U20_ag(T235, T230, T211, T212, inG_in_ag(s(T235), T212))
U20_ag(T235, T230, T211, T212, inG_out_ag(s(T235), T212)) → inG_out_ag(s(T235), tree(s(T230), T211, T212))
U17_ag(T219, T211, T212, inG_out_ag(s(T219), T212)) → inG_out_ag(s(T219), tree(0, T211, T212))
U10_gag(T127, T133, T129, inG_out_ag(T133, T129)) → pH_out_gag(T127, T133, T129)
U13_ag(T130, T127, T128, T129, pH_out_gag(T127, T130, T129)) → inG_out_ag(T130, tree(T127, T128, T129))

The argument filtering Pi contains the following mapping:
inG_in_ag(x1, x2)  =  inG_in_ag(x2)
tree(x1, x2, x3)  =  tree(x1, x2, x3)
inG_out_ag(x1, x2)  =  inG_out_ag
s(x1)  =  s(x1)
U11_ag(x1, x2, x3, x4)  =  U11_ag(x4)
inA_in_g(x1)  =  inA_in_g(x1)
0  =  0
inA_out_g(x1)  =  inA_out_g
U1_g(x1, x2, x3, x4)  =  U1_g(x2, x4)
lessB_in_g(x1)  =  lessB_in_g(x1)
lessB_out_g(x1)  =  lessB_out_g
U2_g(x1, x2, x3, x4)  =  U2_g(x4)
U12_ag(x1, x2, x3, x4, x5)  =  U12_ag(x5)
pF_in_agg(x1, x2, x3)  =  pF_in_agg(x2, x3)
U5_agg(x1, x2, x3, x4)  =  U5_agg(x4)
lessD_in_ag(x1, x2)  =  lessD_in_ag(x2)
lessD_out_ag(x1, x2)  =  lessD_out_ag(x1)
U3_ag(x1, x2, x3)  =  U3_ag(x3)
pF_out_agg(x1, x2, x3)  =  pF_out_agg(x1)
U6_agg(x1, x2, x3, x4)  =  U6_agg(x3, x4)
U7_agg(x1, x2, x3, x4)  =  U7_agg(x1, x4)
inG_in_gg(x1, x2)  =  inG_in_gg(x1, x2)
inG_out_gg(x1, x2)  =  inG_out_gg
U11_gg(x1, x2, x3, x4)  =  U11_gg(x4)
U12_gg(x1, x2, x3, x4, x5)  =  U12_gg(x5)
pF_in_ggg(x1, x2, x3)  =  pF_in_ggg(x1, x2, x3)
U5_ggg(x1, x2, x3, x4)  =  U5_ggg(x4)
lessD_in_gg(x1, x2)  =  lessD_in_gg(x1, x2)
lessD_out_gg(x1, x2)  =  lessD_out_gg
U3_gg(x1, x2, x3)  =  U3_gg(x3)
pF_out_ggg(x1, x2, x3)  =  pF_out_ggg
U6_ggg(x1, x2, x3, x4)  =  U6_ggg(x1, x3, x4)
U7_ggg(x1, x2, x3, x4)  =  U7_ggg(x4)
U13_gg(x1, x2, x3, x4, x5)  =  U13_gg(x5)
pH_in_ggg(x1, x2, x3)  =  pH_in_ggg(x1, x2, x3)
U8_ggg(x1, x2, x3, x4)  =  U8_ggg(x4)
lessE_in_gg(x1, x2)  =  lessE_in_gg(x1, x2)
lessE_out_gg(x1, x2)  =  lessE_out_gg
U4_gg(x1, x2, x3)  =  U4_gg(x3)
pH_out_ggg(x1, x2, x3)  =  pH_out_ggg
U9_ggg(x1, x2, x3, x4)  =  U9_ggg(x2, x3, x4)
U10_ggg(x1, x2, x3, x4)  =  U10_ggg(x4)
U14_gg(x1, x2, x3, x4)  =  U14_gg(x4)
U15_gg(x1, x2, x3, x4, x5)  =  U15_gg(x5)
U16_gg(x1, x2, x3, x4, x5)  =  U16_gg(x5)
U17_gg(x1, x2, x3, x4)  =  U17_gg(x4)
U18_gg(x1, x2, x3, x4, x5)  =  U18_gg(x5)
U19_gg(x1, x2, x3, x4, x5)  =  U19_gg(x1, x4, x5)
U20_gg(x1, x2, x3, x4, x5)  =  U20_gg(x5)
U13_ag(x1, x2, x3, x4, x5)  =  U13_ag(x5)
pH_in_gag(x1, x2, x3)  =  pH_in_gag(x1, x3)
U8_gag(x1, x2, x3, x4)  =  U8_gag(x4)
lessE_in_ga(x1, x2)  =  lessE_in_ga(x1)
lessE_out_ga(x1, x2)  =  lessE_out_ga
U4_ga(x1, x2, x3)  =  U4_ga(x3)
pH_out_gag(x1, x2, x3)  =  pH_out_gag
U9_gag(x1, x2, x3, x4)  =  U9_gag(x3, x4)
U10_gag(x1, x2, x3, x4)  =  U10_gag(x4)
U14_ag(x1, x2, x3, x4)  =  U14_ag(x4)
U15_ag(x1, x2, x3, x4, x5)  =  U15_ag(x5)
U16_ag(x1, x2, x3, x4, x5)  =  U16_ag(x5)
U17_ag(x1, x2, x3, x4)  =  U17_ag(x4)
U18_ag(x1, x2, x3, x4, x5)  =  U18_ag(x5)
U19_ag(x1, x2, x3, x4, x5)  =  U19_ag(x4, x5)
U20_ag(x1, x2, x3, x4, x5)  =  U20_ag(x5)
ING_IN_AG(x1, x2)  =  ING_IN_AG(x2)
U11_AG(x1, x2, x3, x4)  =  U11_AG(x4)
INA_IN_G(x1)  =  INA_IN_G(x1)
U1_G(x1, x2, x3, x4)  =  U1_G(x2, x4)
LESSB_IN_G(x1)  =  LESSB_IN_G(x1)
U2_G(x1, x2, x3, x4)  =  U2_G(x4)
U12_AG(x1, x2, x3, x4, x5)  =  U12_AG(x5)
PF_IN_AGG(x1, x2, x3)  =  PF_IN_AGG(x2, x3)
U5_AGG(x1, x2, x3, x4)  =  U5_AGG(x4)
LESSD_IN_AG(x1, x2)  =  LESSD_IN_AG(x2)
U3_AG(x1, x2, x3)  =  U3_AG(x3)
U6_AGG(x1, x2, x3, x4)  =  U6_AGG(x3, x4)
U7_AGG(x1, x2, x3, x4)  =  U7_AGG(x1, x4)
ING_IN_GG(x1, x2)  =  ING_IN_GG(x1, x2)
U11_GG(x1, x2, x3, x4)  =  U11_GG(x4)
U12_GG(x1, x2, x3, x4, x5)  =  U12_GG(x5)
PF_IN_GGG(x1, x2, x3)  =  PF_IN_GGG(x1, x2, x3)
U5_GGG(x1, x2, x3, x4)  =  U5_GGG(x4)
LESSD_IN_GG(x1, x2)  =  LESSD_IN_GG(x1, x2)
U3_GG(x1, x2, x3)  =  U3_GG(x3)
U6_GGG(x1, x2, x3, x4)  =  U6_GGG(x1, x3, x4)
U7_GGG(x1, x2, x3, x4)  =  U7_GGG(x4)
U13_GG(x1, x2, x3, x4, x5)  =  U13_GG(x5)
PH_IN_GGG(x1, x2, x3)  =  PH_IN_GGG(x1, x2, x3)
U8_GGG(x1, x2, x3, x4)  =  U8_GGG(x4)
LESSE_IN_GG(x1, x2)  =  LESSE_IN_GG(x1, x2)
U4_GG(x1, x2, x3)  =  U4_GG(x3)
U9_GGG(x1, x2, x3, x4)  =  U9_GGG(x2, x3, x4)
U10_GGG(x1, x2, x3, x4)  =  U10_GGG(x4)
U14_GG(x1, x2, x3, x4)  =  U14_GG(x4)
U15_GG(x1, x2, x3, x4, x5)  =  U15_GG(x5)
U16_GG(x1, x2, x3, x4, x5)  =  U16_GG(x5)
U17_GG(x1, x2, x3, x4)  =  U17_GG(x4)
U18_GG(x1, x2, x3, x4, x5)  =  U18_GG(x5)
U19_GG(x1, x2, x3, x4, x5)  =  U19_GG(x1, x4, x5)
U20_GG(x1, x2, x3, x4, x5)  =  U20_GG(x5)
U13_AG(x1, x2, x3, x4, x5)  =  U13_AG(x5)
PH_IN_GAG(x1, x2, x3)  =  PH_IN_GAG(x1, x3)
U8_GAG(x1, x2, x3, x4)  =  U8_GAG(x4)
LESSE_IN_GA(x1, x2)  =  LESSE_IN_GA(x1)
U4_GA(x1, x2, x3)  =  U4_GA(x3)
U9_GAG(x1, x2, x3, x4)  =  U9_GAG(x3, x4)
U10_GAG(x1, x2, x3, x4)  =  U10_GAG(x4)
U14_AG(x1, x2, x3, x4)  =  U14_AG(x4)
U15_AG(x1, x2, x3, x4, x5)  =  U15_AG(x5)
U16_AG(x1, x2, x3, x4, x5)  =  U16_AG(x5)
U17_AG(x1, x2, x3, x4)  =  U17_AG(x4)
U18_AG(x1, x2, x3, x4, x5)  =  U18_AG(x5)
U19_AG(x1, x2, x3, x4, x5)  =  U19_AG(x4, x5)
U20_AG(x1, x2, x3, x4, x5)  =  U20_AG(x5)

We have to consider all (P,R,Pi)-chains

(6) Obligation:

Pi DP problem:
The TRS P consists of the following rules:

ING_IN_AG(0, tree(s(T22), T15, T16)) → U11_AG(T22, T15, T16, inA_in_g(T15))
ING_IN_AG(0, tree(s(T22), T15, T16)) → INA_IN_G(T15)
INA_IN_G(tree(T49, T50, T51)) → U1_G(T49, T50, T51, lessB_in_g(T49))
INA_IN_G(tree(T49, T50, T51)) → LESSB_IN_G(T49)
U1_G(T49, T50, T51, lessB_out_g(T49)) → U2_G(T49, T50, T51, inA_in_g(T50))
U1_G(T49, T50, T51, lessB_out_g(T49)) → INA_IN_G(T50)
ING_IN_AG(s(T89), tree(s(T88), T15, T16)) → U12_AG(T89, T88, T15, T16, pF_in_agg(T89, T88, T15))
ING_IN_AG(s(T89), tree(s(T88), T15, T16)) → PF_IN_AGG(T89, T88, T15)
PF_IN_AGG(T89, T88, T15) → U5_AGG(T89, T88, T15, lessD_in_ag(T89, T88))
PF_IN_AGG(T89, T88, T15) → LESSD_IN_AG(T89, T88)
LESSD_IN_AG(s(T106), s(T105)) → U3_AG(T106, T105, lessD_in_ag(T106, T105))
LESSD_IN_AG(s(T106), s(T105)) → LESSD_IN_AG(T106, T105)
PF_IN_AGG(T92, T88, T15) → U6_AGG(T92, T88, T15, lessD_in_ag(T92, T88))
U6_AGG(T92, T88, T15, lessD_out_ag(T92, T88)) → U7_AGG(T92, T88, T15, inG_in_gg(s(T92), T15))
U6_AGG(T92, T88, T15, lessD_out_ag(T92, T88)) → ING_IN_GG(s(T92), T15)
ING_IN_GG(0, tree(s(T22), T15, T16)) → U11_GG(T22, T15, T16, inA_in_g(T15))
ING_IN_GG(0, tree(s(T22), T15, T16)) → INA_IN_G(T15)
ING_IN_GG(s(T89), tree(s(T88), T15, T16)) → U12_GG(T89, T88, T15, T16, pF_in_ggg(T89, T88, T15))
ING_IN_GG(s(T89), tree(s(T88), T15, T16)) → PF_IN_GGG(T89, T88, T15)
PF_IN_GGG(T89, T88, T15) → U5_GGG(T89, T88, T15, lessD_in_gg(T89, T88))
PF_IN_GGG(T89, T88, T15) → LESSD_IN_GG(T89, T88)
LESSD_IN_GG(s(T106), s(T105)) → U3_GG(T106, T105, lessD_in_gg(T106, T105))
LESSD_IN_GG(s(T106), s(T105)) → LESSD_IN_GG(T106, T105)
PF_IN_GGG(T92, T88, T15) → U6_GGG(T92, T88, T15, lessD_in_gg(T92, T88))
U6_GGG(T92, T88, T15, lessD_out_gg(T92, T88)) → U7_GGG(T92, T88, T15, inG_in_gg(s(T92), T15))
U6_GGG(T92, T88, T15, lessD_out_gg(T92, T88)) → ING_IN_GG(s(T92), T15)
ING_IN_GG(T130, tree(T127, T128, T129)) → U13_GG(T130, T127, T128, T129, pH_in_ggg(T127, T130, T129))
ING_IN_GG(T130, tree(T127, T128, T129)) → PH_IN_GGG(T127, T130, T129)
PH_IN_GGG(T127, T130, T129) → U8_GGG(T127, T130, T129, lessE_in_gg(T127, T130))
PH_IN_GGG(T127, T130, T129) → LESSE_IN_GG(T127, T130)
LESSE_IN_GG(s(T145), s(T147)) → U4_GG(T145, T147, lessE_in_gg(T145, T147))
LESSE_IN_GG(s(T145), s(T147)) → LESSE_IN_GG(T145, T147)
PH_IN_GGG(T127, T133, T129) → U9_GGG(T127, T133, T129, lessE_in_gg(T127, T133))
U9_GGG(T127, T133, T129, lessE_out_gg(T127, T133)) → U10_GGG(T127, T133, T129, inG_in_gg(T133, T129))
U9_GGG(T127, T133, T129, lessE_out_gg(T127, T133)) → ING_IN_GG(T133, T129)
ING_IN_GG(0, tree(s(T169), T162, T163)) → U14_GG(T169, T162, T163, inA_in_g(T162))
ING_IN_GG(s(T184), tree(s(T183), T162, T163)) → U15_GG(T184, T183, T162, T163, pF_in_ggg(T184, T183, T162))
ING_IN_GG(T202, tree(T199, T200, T201)) → U16_GG(T202, T199, T200, T201, pH_in_ggg(T199, T202, T201))
ING_IN_GG(s(T219), tree(0, T211, T212)) → U17_GG(T219, T211, T212, inG_in_gg(s(T219), T212))
ING_IN_GG(s(T219), tree(0, T211, T212)) → ING_IN_GG(s(T219), T212)
ING_IN_GG(s(T232), tree(s(T230), T211, T212)) → U18_GG(T232, T230, T211, T212, lessE_in_gg(T230, T232))
ING_IN_GG(s(T232), tree(s(T230), T211, T212)) → LESSE_IN_GG(T230, T232)
ING_IN_GG(s(T235), tree(s(T230), T211, T212)) → U19_GG(T235, T230, T211, T212, lessE_in_gg(T230, T235))
U19_GG(T235, T230, T211, T212, lessE_out_gg(T230, T235)) → U20_GG(T235, T230, T211, T212, inG_in_gg(s(T235), T212))
U19_GG(T235, T230, T211, T212, lessE_out_gg(T230, T235)) → ING_IN_GG(s(T235), T212)
ING_IN_AG(T130, tree(T127, T128, T129)) → U13_AG(T130, T127, T128, T129, pH_in_gag(T127, T130, T129))
ING_IN_AG(T130, tree(T127, T128, T129)) → PH_IN_GAG(T127, T130, T129)
PH_IN_GAG(T127, T130, T129) → U8_GAG(T127, T130, T129, lessE_in_ga(T127, T130))
PH_IN_GAG(T127, T130, T129) → LESSE_IN_GA(T127, T130)
LESSE_IN_GA(s(T145), s(T147)) → U4_GA(T145, T147, lessE_in_ga(T145, T147))
LESSE_IN_GA(s(T145), s(T147)) → LESSE_IN_GA(T145, T147)
PH_IN_GAG(T127, T133, T129) → U9_GAG(T127, T133, T129, lessE_in_ga(T127, T133))
U9_GAG(T127, T133, T129, lessE_out_ga(T127, T133)) → U10_GAG(T127, T133, T129, inG_in_ag(T133, T129))
U9_GAG(T127, T133, T129, lessE_out_ga(T127, T133)) → ING_IN_AG(T133, T129)
ING_IN_AG(0, tree(s(T169), T162, T163)) → U14_AG(T169, T162, T163, inA_in_g(T162))
ING_IN_AG(s(T184), tree(s(T183), T162, T163)) → U15_AG(T184, T183, T162, T163, pF_in_agg(T184, T183, T162))
ING_IN_AG(T202, tree(T199, T200, T201)) → U16_AG(T202, T199, T200, T201, pH_in_gag(T199, T202, T201))
ING_IN_AG(s(T219), tree(0, T211, T212)) → U17_AG(T219, T211, T212, inG_in_ag(s(T219), T212))
ING_IN_AG(s(T219), tree(0, T211, T212)) → ING_IN_AG(s(T219), T212)
ING_IN_AG(s(T232), tree(s(T230), T211, T212)) → U18_AG(T232, T230, T211, T212, lessE_in_ga(T230, T232))
ING_IN_AG(s(T232), tree(s(T230), T211, T212)) → LESSE_IN_GA(T230, T232)
ING_IN_AG(s(T235), tree(s(T230), T211, T212)) → U19_AG(T235, T230, T211, T212, lessE_in_ga(T230, T235))
U19_AG(T235, T230, T211, T212, lessE_out_ga(T230, T235)) → U20_AG(T235, T230, T211, T212, inG_in_ag(s(T235), T212))
U19_AG(T235, T230, T211, T212, lessE_out_ga(T230, T235)) → ING_IN_AG(s(T235), T212)

The TRS R consists of the following rules:

inG_in_ag(T6, tree(T6, T7, T8)) → inG_out_ag(T6, tree(T6, T7, T8))
inG_in_ag(0, tree(s(T22), T15, T16)) → U11_ag(T22, T15, T16, inA_in_g(T15))
inA_in_g(tree(0, T35, T36)) → inA_out_g(tree(0, T35, T36))
inA_in_g(tree(T49, T50, T51)) → U1_g(T49, T50, T51, lessB_in_g(T49))
lessB_in_g(s(T60)) → lessB_out_g(s(T60))
U1_g(T49, T50, T51, lessB_out_g(T49)) → inA_out_g(tree(T49, T50, T51))
U1_g(T49, T50, T51, lessB_out_g(T49)) → U2_g(T49, T50, T51, inA_in_g(T50))
U2_g(T49, T50, T51, inA_out_g(T50)) → inA_out_g(tree(T49, T50, T51))
U11_ag(T22, T15, T16, inA_out_g(T15)) → inG_out_ag(0, tree(s(T22), T15, T16))
inG_in_ag(s(T89), tree(s(T88), T15, T16)) → U12_ag(T89, T88, T15, T16, pF_in_agg(T89, T88, T15))
pF_in_agg(T89, T88, T15) → U5_agg(T89, T88, T15, lessD_in_ag(T89, T88))
lessD_in_ag(0, s(T99)) → lessD_out_ag(0, s(T99))
lessD_in_ag(s(T106), s(T105)) → U3_ag(T106, T105, lessD_in_ag(T106, T105))
U3_ag(T106, T105, lessD_out_ag(T106, T105)) → lessD_out_ag(s(T106), s(T105))
U5_agg(T89, T88, T15, lessD_out_ag(T89, T88)) → pF_out_agg(T89, T88, T15)
pF_in_agg(T92, T88, T15) → U6_agg(T92, T88, T15, lessD_in_ag(T92, T88))
U6_agg(T92, T88, T15, lessD_out_ag(T92, T88)) → U7_agg(T92, T88, T15, inG_in_gg(s(T92), T15))
inG_in_gg(T6, tree(T6, T7, T8)) → inG_out_gg(T6, tree(T6, T7, T8))
inG_in_gg(0, tree(s(T22), T15, T16)) → U11_gg(T22, T15, T16, inA_in_g(T15))
U11_gg(T22, T15, T16, inA_out_g(T15)) → inG_out_gg(0, tree(s(T22), T15, T16))
inG_in_gg(s(T89), tree(s(T88), T15, T16)) → U12_gg(T89, T88, T15, T16, pF_in_ggg(T89, T88, T15))
pF_in_ggg(T89, T88, T15) → U5_ggg(T89, T88, T15, lessD_in_gg(T89, T88))
lessD_in_gg(0, s(T99)) → lessD_out_gg(0, s(T99))
lessD_in_gg(s(T106), s(T105)) → U3_gg(T106, T105, lessD_in_gg(T106, T105))
U3_gg(T106, T105, lessD_out_gg(T106, T105)) → lessD_out_gg(s(T106), s(T105))
U5_ggg(T89, T88, T15, lessD_out_gg(T89, T88)) → pF_out_ggg(T89, T88, T15)
pF_in_ggg(T92, T88, T15) → U6_ggg(T92, T88, T15, lessD_in_gg(T92, T88))
U6_ggg(T92, T88, T15, lessD_out_gg(T92, T88)) → U7_ggg(T92, T88, T15, inG_in_gg(s(T92), T15))
inG_in_gg(T130, tree(T127, T128, T129)) → U13_gg(T130, T127, T128, T129, pH_in_ggg(T127, T130, T129))
pH_in_ggg(T127, T130, T129) → U8_ggg(T127, T130, T129, lessE_in_gg(T127, T130))
lessE_in_gg(0, s(T140)) → lessE_out_gg(0, s(T140))
lessE_in_gg(s(T145), s(T147)) → U4_gg(T145, T147, lessE_in_gg(T145, T147))
U4_gg(T145, T147, lessE_out_gg(T145, T147)) → lessE_out_gg(s(T145), s(T147))
U8_ggg(T127, T130, T129, lessE_out_gg(T127, T130)) → pH_out_ggg(T127, T130, T129)
pH_in_ggg(T127, T133, T129) → U9_ggg(T127, T133, T129, lessE_in_gg(T127, T133))
U9_ggg(T127, T133, T129, lessE_out_gg(T127, T133)) → U10_ggg(T127, T133, T129, inG_in_gg(T133, T129))
inG_in_gg(0, tree(s(T169), T162, T163)) → U14_gg(T169, T162, T163, inA_in_g(T162))
U14_gg(T169, T162, T163, inA_out_g(T162)) → inG_out_gg(0, tree(s(T169), T162, T163))
inG_in_gg(s(T184), tree(s(T183), T162, T163)) → U15_gg(T184, T183, T162, T163, pF_in_ggg(T184, T183, T162))
U15_gg(T184, T183, T162, T163, pF_out_ggg(T184, T183, T162)) → inG_out_gg(s(T184), tree(s(T183), T162, T163))
inG_in_gg(T202, tree(T199, T200, T201)) → U16_gg(T202, T199, T200, T201, pH_in_ggg(T199, T202, T201))
U16_gg(T202, T199, T200, T201, pH_out_ggg(T199, T202, T201)) → inG_out_gg(T202, tree(T199, T200, T201))
inG_in_gg(s(T219), tree(0, T211, T212)) → U17_gg(T219, T211, T212, inG_in_gg(s(T219), T212))
inG_in_gg(s(T232), tree(s(T230), T211, T212)) → U18_gg(T232, T230, T211, T212, lessE_in_gg(T230, T232))
U18_gg(T232, T230, T211, T212, lessE_out_gg(T230, T232)) → inG_out_gg(s(T232), tree(s(T230), T211, T212))
inG_in_gg(s(T235), tree(s(T230), T211, T212)) → U19_gg(T235, T230, T211, T212, lessE_in_gg(T230, T235))
U19_gg(T235, T230, T211, T212, lessE_out_gg(T230, T235)) → U20_gg(T235, T230, T211, T212, inG_in_gg(s(T235), T212))
U20_gg(T235, T230, T211, T212, inG_out_gg(s(T235), T212)) → inG_out_gg(s(T235), tree(s(T230), T211, T212))
U17_gg(T219, T211, T212, inG_out_gg(s(T219), T212)) → inG_out_gg(s(T219), tree(0, T211, T212))
U10_ggg(T127, T133, T129, inG_out_gg(T133, T129)) → pH_out_ggg(T127, T133, T129)
U13_gg(T130, T127, T128, T129, pH_out_ggg(T127, T130, T129)) → inG_out_gg(T130, tree(T127, T128, T129))
U7_ggg(T92, T88, T15, inG_out_gg(s(T92), T15)) → pF_out_ggg(T92, T88, T15)
U12_gg(T89, T88, T15, T16, pF_out_ggg(T89, T88, T15)) → inG_out_gg(s(T89), tree(s(T88), T15, T16))
U7_agg(T92, T88, T15, inG_out_gg(s(T92), T15)) → pF_out_agg(T92, T88, T15)
U12_ag(T89, T88, T15, T16, pF_out_agg(T89, T88, T15)) → inG_out_ag(s(T89), tree(s(T88), T15, T16))
inG_in_ag(T130, tree(T127, T128, T129)) → U13_ag(T130, T127, T128, T129, pH_in_gag(T127, T130, T129))
pH_in_gag(T127, T130, T129) → U8_gag(T127, T130, T129, lessE_in_ga(T127, T130))
lessE_in_ga(0, s(T140)) → lessE_out_ga(0, s(T140))
lessE_in_ga(s(T145), s(T147)) → U4_ga(T145, T147, lessE_in_ga(T145, T147))
U4_ga(T145, T147, lessE_out_ga(T145, T147)) → lessE_out_ga(s(T145), s(T147))
U8_gag(T127, T130, T129, lessE_out_ga(T127, T130)) → pH_out_gag(T127, T130, T129)
pH_in_gag(T127, T133, T129) → U9_gag(T127, T133, T129, lessE_in_ga(T127, T133))
U9_gag(T127, T133, T129, lessE_out_ga(T127, T133)) → U10_gag(T127, T133, T129, inG_in_ag(T133, T129))
inG_in_ag(0, tree(s(T169), T162, T163)) → U14_ag(T169, T162, T163, inA_in_g(T162))
U14_ag(T169, T162, T163, inA_out_g(T162)) → inG_out_ag(0, tree(s(T169), T162, T163))
inG_in_ag(s(T184), tree(s(T183), T162, T163)) → U15_ag(T184, T183, T162, T163, pF_in_agg(T184, T183, T162))
U15_ag(T184, T183, T162, T163, pF_out_agg(T184, T183, T162)) → inG_out_ag(s(T184), tree(s(T183), T162, T163))
inG_in_ag(T202, tree(T199, T200, T201)) → U16_ag(T202, T199, T200, T201, pH_in_gag(T199, T202, T201))
U16_ag(T202, T199, T200, T201, pH_out_gag(T199, T202, T201)) → inG_out_ag(T202, tree(T199, T200, T201))
inG_in_ag(s(T219), tree(0, T211, T212)) → U17_ag(T219, T211, T212, inG_in_ag(s(T219), T212))
inG_in_ag(s(T232), tree(s(T230), T211, T212)) → U18_ag(T232, T230, T211, T212, lessE_in_ga(T230, T232))
U18_ag(T232, T230, T211, T212, lessE_out_ga(T230, T232)) → inG_out_ag(s(T232), tree(s(T230), T211, T212))
inG_in_ag(s(T235), tree(s(T230), T211, T212)) → U19_ag(T235, T230, T211, T212, lessE_in_ga(T230, T235))
U19_ag(T235, T230, T211, T212, lessE_out_ga(T230, T235)) → U20_ag(T235, T230, T211, T212, inG_in_ag(s(T235), T212))
U20_ag(T235, T230, T211, T212, inG_out_ag(s(T235), T212)) → inG_out_ag(s(T235), tree(s(T230), T211, T212))
U17_ag(T219, T211, T212, inG_out_ag(s(T219), T212)) → inG_out_ag(s(T219), tree(0, T211, T212))
U10_gag(T127, T133, T129, inG_out_ag(T133, T129)) → pH_out_gag(T127, T133, T129)
U13_ag(T130, T127, T128, T129, pH_out_gag(T127, T130, T129)) → inG_out_ag(T130, tree(T127, T128, T129))

The argument filtering Pi contains the following mapping:
inG_in_ag(x1, x2)  =  inG_in_ag(x2)
tree(x1, x2, x3)  =  tree(x1, x2, x3)
inG_out_ag(x1, x2)  =  inG_out_ag
s(x1)  =  s(x1)
U11_ag(x1, x2, x3, x4)  =  U11_ag(x4)
inA_in_g(x1)  =  inA_in_g(x1)
0  =  0
inA_out_g(x1)  =  inA_out_g
U1_g(x1, x2, x3, x4)  =  U1_g(x2, x4)
lessB_in_g(x1)  =  lessB_in_g(x1)
lessB_out_g(x1)  =  lessB_out_g
U2_g(x1, x2, x3, x4)  =  U2_g(x4)
U12_ag(x1, x2, x3, x4, x5)  =  U12_ag(x5)
pF_in_agg(x1, x2, x3)  =  pF_in_agg(x2, x3)
U5_agg(x1, x2, x3, x4)  =  U5_agg(x4)
lessD_in_ag(x1, x2)  =  lessD_in_ag(x2)
lessD_out_ag(x1, x2)  =  lessD_out_ag(x1)
U3_ag(x1, x2, x3)  =  U3_ag(x3)
pF_out_agg(x1, x2, x3)  =  pF_out_agg(x1)
U6_agg(x1, x2, x3, x4)  =  U6_agg(x3, x4)
U7_agg(x1, x2, x3, x4)  =  U7_agg(x1, x4)
inG_in_gg(x1, x2)  =  inG_in_gg(x1, x2)
inG_out_gg(x1, x2)  =  inG_out_gg
U11_gg(x1, x2, x3, x4)  =  U11_gg(x4)
U12_gg(x1, x2, x3, x4, x5)  =  U12_gg(x5)
pF_in_ggg(x1, x2, x3)  =  pF_in_ggg(x1, x2, x3)
U5_ggg(x1, x2, x3, x4)  =  U5_ggg(x4)
lessD_in_gg(x1, x2)  =  lessD_in_gg(x1, x2)
lessD_out_gg(x1, x2)  =  lessD_out_gg
U3_gg(x1, x2, x3)  =  U3_gg(x3)
pF_out_ggg(x1, x2, x3)  =  pF_out_ggg
U6_ggg(x1, x2, x3, x4)  =  U6_ggg(x1, x3, x4)
U7_ggg(x1, x2, x3, x4)  =  U7_ggg(x4)
U13_gg(x1, x2, x3, x4, x5)  =  U13_gg(x5)
pH_in_ggg(x1, x2, x3)  =  pH_in_ggg(x1, x2, x3)
U8_ggg(x1, x2, x3, x4)  =  U8_ggg(x4)
lessE_in_gg(x1, x2)  =  lessE_in_gg(x1, x2)
lessE_out_gg(x1, x2)  =  lessE_out_gg
U4_gg(x1, x2, x3)  =  U4_gg(x3)
pH_out_ggg(x1, x2, x3)  =  pH_out_ggg
U9_ggg(x1, x2, x3, x4)  =  U9_ggg(x2, x3, x4)
U10_ggg(x1, x2, x3, x4)  =  U10_ggg(x4)
U14_gg(x1, x2, x3, x4)  =  U14_gg(x4)
U15_gg(x1, x2, x3, x4, x5)  =  U15_gg(x5)
U16_gg(x1, x2, x3, x4, x5)  =  U16_gg(x5)
U17_gg(x1, x2, x3, x4)  =  U17_gg(x4)
U18_gg(x1, x2, x3, x4, x5)  =  U18_gg(x5)
U19_gg(x1, x2, x3, x4, x5)  =  U19_gg(x1, x4, x5)
U20_gg(x1, x2, x3, x4, x5)  =  U20_gg(x5)
U13_ag(x1, x2, x3, x4, x5)  =  U13_ag(x5)
pH_in_gag(x1, x2, x3)  =  pH_in_gag(x1, x3)
U8_gag(x1, x2, x3, x4)  =  U8_gag(x4)
lessE_in_ga(x1, x2)  =  lessE_in_ga(x1)
lessE_out_ga(x1, x2)  =  lessE_out_ga
U4_ga(x1, x2, x3)  =  U4_ga(x3)
pH_out_gag(x1, x2, x3)  =  pH_out_gag
U9_gag(x1, x2, x3, x4)  =  U9_gag(x3, x4)
U10_gag(x1, x2, x3, x4)  =  U10_gag(x4)
U14_ag(x1, x2, x3, x4)  =  U14_ag(x4)
U15_ag(x1, x2, x3, x4, x5)  =  U15_ag(x5)
U16_ag(x1, x2, x3, x4, x5)  =  U16_ag(x5)
U17_ag(x1, x2, x3, x4)  =  U17_ag(x4)
U18_ag(x1, x2, x3, x4, x5)  =  U18_ag(x5)
U19_ag(x1, x2, x3, x4, x5)  =  U19_ag(x4, x5)
U20_ag(x1, x2, x3, x4, x5)  =  U20_ag(x5)
ING_IN_AG(x1, x2)  =  ING_IN_AG(x2)
U11_AG(x1, x2, x3, x4)  =  U11_AG(x4)
INA_IN_G(x1)  =  INA_IN_G(x1)
U1_G(x1, x2, x3, x4)  =  U1_G(x2, x4)
LESSB_IN_G(x1)  =  LESSB_IN_G(x1)
U2_G(x1, x2, x3, x4)  =  U2_G(x4)
U12_AG(x1, x2, x3, x4, x5)  =  U12_AG(x5)
PF_IN_AGG(x1, x2, x3)  =  PF_IN_AGG(x2, x3)
U5_AGG(x1, x2, x3, x4)  =  U5_AGG(x4)
LESSD_IN_AG(x1, x2)  =  LESSD_IN_AG(x2)
U3_AG(x1, x2, x3)  =  U3_AG(x3)
U6_AGG(x1, x2, x3, x4)  =  U6_AGG(x3, x4)
U7_AGG(x1, x2, x3, x4)  =  U7_AGG(x1, x4)
ING_IN_GG(x1, x2)  =  ING_IN_GG(x1, x2)
U11_GG(x1, x2, x3, x4)  =  U11_GG(x4)
U12_GG(x1, x2, x3, x4, x5)  =  U12_GG(x5)
PF_IN_GGG(x1, x2, x3)  =  PF_IN_GGG(x1, x2, x3)
U5_GGG(x1, x2, x3, x4)  =  U5_GGG(x4)
LESSD_IN_GG(x1, x2)  =  LESSD_IN_GG(x1, x2)
U3_GG(x1, x2, x3)  =  U3_GG(x3)
U6_GGG(x1, x2, x3, x4)  =  U6_GGG(x1, x3, x4)
U7_GGG(x1, x2, x3, x4)  =  U7_GGG(x4)
U13_GG(x1, x2, x3, x4, x5)  =  U13_GG(x5)
PH_IN_GGG(x1, x2, x3)  =  PH_IN_GGG(x1, x2, x3)
U8_GGG(x1, x2, x3, x4)  =  U8_GGG(x4)
LESSE_IN_GG(x1, x2)  =  LESSE_IN_GG(x1, x2)
U4_GG(x1, x2, x3)  =  U4_GG(x3)
U9_GGG(x1, x2, x3, x4)  =  U9_GGG(x2, x3, x4)
U10_GGG(x1, x2, x3, x4)  =  U10_GGG(x4)
U14_GG(x1, x2, x3, x4)  =  U14_GG(x4)
U15_GG(x1, x2, x3, x4, x5)  =  U15_GG(x5)
U16_GG(x1, x2, x3, x4, x5)  =  U16_GG(x5)
U17_GG(x1, x2, x3, x4)  =  U17_GG(x4)
U18_GG(x1, x2, x3, x4, x5)  =  U18_GG(x5)
U19_GG(x1, x2, x3, x4, x5)  =  U19_GG(x1, x4, x5)
U20_GG(x1, x2, x3, x4, x5)  =  U20_GG(x5)
U13_AG(x1, x2, x3, x4, x5)  =  U13_AG(x5)
PH_IN_GAG(x1, x2, x3)  =  PH_IN_GAG(x1, x3)
U8_GAG(x1, x2, x3, x4)  =  U8_GAG(x4)
LESSE_IN_GA(x1, x2)  =  LESSE_IN_GA(x1)
U4_GA(x1, x2, x3)  =  U4_GA(x3)
U9_GAG(x1, x2, x3, x4)  =  U9_GAG(x3, x4)
U10_GAG(x1, x2, x3, x4)  =  U10_GAG(x4)
U14_AG(x1, x2, x3, x4)  =  U14_AG(x4)
U15_AG(x1, x2, x3, x4, x5)  =  U15_AG(x5)
U16_AG(x1, x2, x3, x4, x5)  =  U16_AG(x5)
U17_AG(x1, x2, x3, x4)  =  U17_AG(x4)
U18_AG(x1, x2, x3, x4, x5)  =  U18_AG(x5)
U19_AG(x1, x2, x3, x4, x5)  =  U19_AG(x4, x5)
U20_AG(x1, x2, x3, x4, x5)  =  U20_AG(x5)

We have to consider all (P,R,Pi)-chains

(7) DependencyGraphProof (EQUIVALENT transformation)

The approximation of the Dependency Graph [LOPSTR] contains 7 SCCs with 43 less nodes.

(8) Complex Obligation (AND)

(9) Obligation:

Pi DP problem:
The TRS P consists of the following rules:

LESSE_IN_GA(s(T145), s(T147)) → LESSE_IN_GA(T145, T147)

The TRS R consists of the following rules:

inG_in_ag(T6, tree(T6, T7, T8)) → inG_out_ag(T6, tree(T6, T7, T8))
inG_in_ag(0, tree(s(T22), T15, T16)) → U11_ag(T22, T15, T16, inA_in_g(T15))
inA_in_g(tree(0, T35, T36)) → inA_out_g(tree(0, T35, T36))
inA_in_g(tree(T49, T50, T51)) → U1_g(T49, T50, T51, lessB_in_g(T49))
lessB_in_g(s(T60)) → lessB_out_g(s(T60))
U1_g(T49, T50, T51, lessB_out_g(T49)) → inA_out_g(tree(T49, T50, T51))
U1_g(T49, T50, T51, lessB_out_g(T49)) → U2_g(T49, T50, T51, inA_in_g(T50))
U2_g(T49, T50, T51, inA_out_g(T50)) → inA_out_g(tree(T49, T50, T51))
U11_ag(T22, T15, T16, inA_out_g(T15)) → inG_out_ag(0, tree(s(T22), T15, T16))
inG_in_ag(s(T89), tree(s(T88), T15, T16)) → U12_ag(T89, T88, T15, T16, pF_in_agg(T89, T88, T15))
pF_in_agg(T89, T88, T15) → U5_agg(T89, T88, T15, lessD_in_ag(T89, T88))
lessD_in_ag(0, s(T99)) → lessD_out_ag(0, s(T99))
lessD_in_ag(s(T106), s(T105)) → U3_ag(T106, T105, lessD_in_ag(T106, T105))
U3_ag(T106, T105, lessD_out_ag(T106, T105)) → lessD_out_ag(s(T106), s(T105))
U5_agg(T89, T88, T15, lessD_out_ag(T89, T88)) → pF_out_agg(T89, T88, T15)
pF_in_agg(T92, T88, T15) → U6_agg(T92, T88, T15, lessD_in_ag(T92, T88))
U6_agg(T92, T88, T15, lessD_out_ag(T92, T88)) → U7_agg(T92, T88, T15, inG_in_gg(s(T92), T15))
inG_in_gg(T6, tree(T6, T7, T8)) → inG_out_gg(T6, tree(T6, T7, T8))
inG_in_gg(0, tree(s(T22), T15, T16)) → U11_gg(T22, T15, T16, inA_in_g(T15))
U11_gg(T22, T15, T16, inA_out_g(T15)) → inG_out_gg(0, tree(s(T22), T15, T16))
inG_in_gg(s(T89), tree(s(T88), T15, T16)) → U12_gg(T89, T88, T15, T16, pF_in_ggg(T89, T88, T15))
pF_in_ggg(T89, T88, T15) → U5_ggg(T89, T88, T15, lessD_in_gg(T89, T88))
lessD_in_gg(0, s(T99)) → lessD_out_gg(0, s(T99))
lessD_in_gg(s(T106), s(T105)) → U3_gg(T106, T105, lessD_in_gg(T106, T105))
U3_gg(T106, T105, lessD_out_gg(T106, T105)) → lessD_out_gg(s(T106), s(T105))
U5_ggg(T89, T88, T15, lessD_out_gg(T89, T88)) → pF_out_ggg(T89, T88, T15)
pF_in_ggg(T92, T88, T15) → U6_ggg(T92, T88, T15, lessD_in_gg(T92, T88))
U6_ggg(T92, T88, T15, lessD_out_gg(T92, T88)) → U7_ggg(T92, T88, T15, inG_in_gg(s(T92), T15))
inG_in_gg(T130, tree(T127, T128, T129)) → U13_gg(T130, T127, T128, T129, pH_in_ggg(T127, T130, T129))
pH_in_ggg(T127, T130, T129) → U8_ggg(T127, T130, T129, lessE_in_gg(T127, T130))
lessE_in_gg(0, s(T140)) → lessE_out_gg(0, s(T140))
lessE_in_gg(s(T145), s(T147)) → U4_gg(T145, T147, lessE_in_gg(T145, T147))
U4_gg(T145, T147, lessE_out_gg(T145, T147)) → lessE_out_gg(s(T145), s(T147))
U8_ggg(T127, T130, T129, lessE_out_gg(T127, T130)) → pH_out_ggg(T127, T130, T129)
pH_in_ggg(T127, T133, T129) → U9_ggg(T127, T133, T129, lessE_in_gg(T127, T133))
U9_ggg(T127, T133, T129, lessE_out_gg(T127, T133)) → U10_ggg(T127, T133, T129, inG_in_gg(T133, T129))
inG_in_gg(0, tree(s(T169), T162, T163)) → U14_gg(T169, T162, T163, inA_in_g(T162))
U14_gg(T169, T162, T163, inA_out_g(T162)) → inG_out_gg(0, tree(s(T169), T162, T163))
inG_in_gg(s(T184), tree(s(T183), T162, T163)) → U15_gg(T184, T183, T162, T163, pF_in_ggg(T184, T183, T162))
U15_gg(T184, T183, T162, T163, pF_out_ggg(T184, T183, T162)) → inG_out_gg(s(T184), tree(s(T183), T162, T163))
inG_in_gg(T202, tree(T199, T200, T201)) → U16_gg(T202, T199, T200, T201, pH_in_ggg(T199, T202, T201))
U16_gg(T202, T199, T200, T201, pH_out_ggg(T199, T202, T201)) → inG_out_gg(T202, tree(T199, T200, T201))
inG_in_gg(s(T219), tree(0, T211, T212)) → U17_gg(T219, T211, T212, inG_in_gg(s(T219), T212))
inG_in_gg(s(T232), tree(s(T230), T211, T212)) → U18_gg(T232, T230, T211, T212, lessE_in_gg(T230, T232))
U18_gg(T232, T230, T211, T212, lessE_out_gg(T230, T232)) → inG_out_gg(s(T232), tree(s(T230), T211, T212))
inG_in_gg(s(T235), tree(s(T230), T211, T212)) → U19_gg(T235, T230, T211, T212, lessE_in_gg(T230, T235))
U19_gg(T235, T230, T211, T212, lessE_out_gg(T230, T235)) → U20_gg(T235, T230, T211, T212, inG_in_gg(s(T235), T212))
U20_gg(T235, T230, T211, T212, inG_out_gg(s(T235), T212)) → inG_out_gg(s(T235), tree(s(T230), T211, T212))
U17_gg(T219, T211, T212, inG_out_gg(s(T219), T212)) → inG_out_gg(s(T219), tree(0, T211, T212))
U10_ggg(T127, T133, T129, inG_out_gg(T133, T129)) → pH_out_ggg(T127, T133, T129)
U13_gg(T130, T127, T128, T129, pH_out_ggg(T127, T130, T129)) → inG_out_gg(T130, tree(T127, T128, T129))
U7_ggg(T92, T88, T15, inG_out_gg(s(T92), T15)) → pF_out_ggg(T92, T88, T15)
U12_gg(T89, T88, T15, T16, pF_out_ggg(T89, T88, T15)) → inG_out_gg(s(T89), tree(s(T88), T15, T16))
U7_agg(T92, T88, T15, inG_out_gg(s(T92), T15)) → pF_out_agg(T92, T88, T15)
U12_ag(T89, T88, T15, T16, pF_out_agg(T89, T88, T15)) → inG_out_ag(s(T89), tree(s(T88), T15, T16))
inG_in_ag(T130, tree(T127, T128, T129)) → U13_ag(T130, T127, T128, T129, pH_in_gag(T127, T130, T129))
pH_in_gag(T127, T130, T129) → U8_gag(T127, T130, T129, lessE_in_ga(T127, T130))
lessE_in_ga(0, s(T140)) → lessE_out_ga(0, s(T140))
lessE_in_ga(s(T145), s(T147)) → U4_ga(T145, T147, lessE_in_ga(T145, T147))
U4_ga(T145, T147, lessE_out_ga(T145, T147)) → lessE_out_ga(s(T145), s(T147))
U8_gag(T127, T130, T129, lessE_out_ga(T127, T130)) → pH_out_gag(T127, T130, T129)
pH_in_gag(T127, T133, T129) → U9_gag(T127, T133, T129, lessE_in_ga(T127, T133))
U9_gag(T127, T133, T129, lessE_out_ga(T127, T133)) → U10_gag(T127, T133, T129, inG_in_ag(T133, T129))
inG_in_ag(0, tree(s(T169), T162, T163)) → U14_ag(T169, T162, T163, inA_in_g(T162))
U14_ag(T169, T162, T163, inA_out_g(T162)) → inG_out_ag(0, tree(s(T169), T162, T163))
inG_in_ag(s(T184), tree(s(T183), T162, T163)) → U15_ag(T184, T183, T162, T163, pF_in_agg(T184, T183, T162))
U15_ag(T184, T183, T162, T163, pF_out_agg(T184, T183, T162)) → inG_out_ag(s(T184), tree(s(T183), T162, T163))
inG_in_ag(T202, tree(T199, T200, T201)) → U16_ag(T202, T199, T200, T201, pH_in_gag(T199, T202, T201))
U16_ag(T202, T199, T200, T201, pH_out_gag(T199, T202, T201)) → inG_out_ag(T202, tree(T199, T200, T201))
inG_in_ag(s(T219), tree(0, T211, T212)) → U17_ag(T219, T211, T212, inG_in_ag(s(T219), T212))
inG_in_ag(s(T232), tree(s(T230), T211, T212)) → U18_ag(T232, T230, T211, T212, lessE_in_ga(T230, T232))
U18_ag(T232, T230, T211, T212, lessE_out_ga(T230, T232)) → inG_out_ag(s(T232), tree(s(T230), T211, T212))
inG_in_ag(s(T235), tree(s(T230), T211, T212)) → U19_ag(T235, T230, T211, T212, lessE_in_ga(T230, T235))
U19_ag(T235, T230, T211, T212, lessE_out_ga(T230, T235)) → U20_ag(T235, T230, T211, T212, inG_in_ag(s(T235), T212))
U20_ag(T235, T230, T211, T212, inG_out_ag(s(T235), T212)) → inG_out_ag(s(T235), tree(s(T230), T211, T212))
U17_ag(T219, T211, T212, inG_out_ag(s(T219), T212)) → inG_out_ag(s(T219), tree(0, T211, T212))
U10_gag(T127, T133, T129, inG_out_ag(T133, T129)) → pH_out_gag(T127, T133, T129)
U13_ag(T130, T127, T128, T129, pH_out_gag(T127, T130, T129)) → inG_out_ag(T130, tree(T127, T128, T129))

The argument filtering Pi contains the following mapping:
inG_in_ag(x1, x2)  =  inG_in_ag(x2)
tree(x1, x2, x3)  =  tree(x1, x2, x3)
inG_out_ag(x1, x2)  =  inG_out_ag
s(x1)  =  s(x1)
U11_ag(x1, x2, x3, x4)  =  U11_ag(x4)
inA_in_g(x1)  =  inA_in_g(x1)
0  =  0
inA_out_g(x1)  =  inA_out_g
U1_g(x1, x2, x3, x4)  =  U1_g(x2, x4)
lessB_in_g(x1)  =  lessB_in_g(x1)
lessB_out_g(x1)  =  lessB_out_g
U2_g(x1, x2, x3, x4)  =  U2_g(x4)
U12_ag(x1, x2, x3, x4, x5)  =  U12_ag(x5)
pF_in_agg(x1, x2, x3)  =  pF_in_agg(x2, x3)
U5_agg(x1, x2, x3, x4)  =  U5_agg(x4)
lessD_in_ag(x1, x2)  =  lessD_in_ag(x2)
lessD_out_ag(x1, x2)  =  lessD_out_ag(x1)
U3_ag(x1, x2, x3)  =  U3_ag(x3)
pF_out_agg(x1, x2, x3)  =  pF_out_agg(x1)
U6_agg(x1, x2, x3, x4)  =  U6_agg(x3, x4)
U7_agg(x1, x2, x3, x4)  =  U7_agg(x1, x4)
inG_in_gg(x1, x2)  =  inG_in_gg(x1, x2)
inG_out_gg(x1, x2)  =  inG_out_gg
U11_gg(x1, x2, x3, x4)  =  U11_gg(x4)
U12_gg(x1, x2, x3, x4, x5)  =  U12_gg(x5)
pF_in_ggg(x1, x2, x3)  =  pF_in_ggg(x1, x2, x3)
U5_ggg(x1, x2, x3, x4)  =  U5_ggg(x4)
lessD_in_gg(x1, x2)  =  lessD_in_gg(x1, x2)
lessD_out_gg(x1, x2)  =  lessD_out_gg
U3_gg(x1, x2, x3)  =  U3_gg(x3)
pF_out_ggg(x1, x2, x3)  =  pF_out_ggg
U6_ggg(x1, x2, x3, x4)  =  U6_ggg(x1, x3, x4)
U7_ggg(x1, x2, x3, x4)  =  U7_ggg(x4)
U13_gg(x1, x2, x3, x4, x5)  =  U13_gg(x5)
pH_in_ggg(x1, x2, x3)  =  pH_in_ggg(x1, x2, x3)
U8_ggg(x1, x2, x3, x4)  =  U8_ggg(x4)
lessE_in_gg(x1, x2)  =  lessE_in_gg(x1, x2)
lessE_out_gg(x1, x2)  =  lessE_out_gg
U4_gg(x1, x2, x3)  =  U4_gg(x3)
pH_out_ggg(x1, x2, x3)  =  pH_out_ggg
U9_ggg(x1, x2, x3, x4)  =  U9_ggg(x2, x3, x4)
U10_ggg(x1, x2, x3, x4)  =  U10_ggg(x4)
U14_gg(x1, x2, x3, x4)  =  U14_gg(x4)
U15_gg(x1, x2, x3, x4, x5)  =  U15_gg(x5)
U16_gg(x1, x2, x3, x4, x5)  =  U16_gg(x5)
U17_gg(x1, x2, x3, x4)  =  U17_gg(x4)
U18_gg(x1, x2, x3, x4, x5)  =  U18_gg(x5)
U19_gg(x1, x2, x3, x4, x5)  =  U19_gg(x1, x4, x5)
U20_gg(x1, x2, x3, x4, x5)  =  U20_gg(x5)
U13_ag(x1, x2, x3, x4, x5)  =  U13_ag(x5)
pH_in_gag(x1, x2, x3)  =  pH_in_gag(x1, x3)
U8_gag(x1, x2, x3, x4)  =  U8_gag(x4)
lessE_in_ga(x1, x2)  =  lessE_in_ga(x1)
lessE_out_ga(x1, x2)  =  lessE_out_ga
U4_ga(x1, x2, x3)  =  U4_ga(x3)
pH_out_gag(x1, x2, x3)  =  pH_out_gag
U9_gag(x1, x2, x3, x4)  =  U9_gag(x3, x4)
U10_gag(x1, x2, x3, x4)  =  U10_gag(x4)
U14_ag(x1, x2, x3, x4)  =  U14_ag(x4)
U15_ag(x1, x2, x3, x4, x5)  =  U15_ag(x5)
U16_ag(x1, x2, x3, x4, x5)  =  U16_ag(x5)
U17_ag(x1, x2, x3, x4)  =  U17_ag(x4)
U18_ag(x1, x2, x3, x4, x5)  =  U18_ag(x5)
U19_ag(x1, x2, x3, x4, x5)  =  U19_ag(x4, x5)
U20_ag(x1, x2, x3, x4, x5)  =  U20_ag(x5)
LESSE_IN_GA(x1, x2)  =  LESSE_IN_GA(x1)

We have to consider all (P,R,Pi)-chains

(10) UsableRulesProof (EQUIVALENT transformation)

For (infinitary) constructor rewriting [LOPSTR] we can delete all non-usable rules from R.

(11) Obligation:

Pi DP problem:
The TRS P consists of the following rules:

LESSE_IN_GA(s(T145), s(T147)) → LESSE_IN_GA(T145, T147)

R is empty.
The argument filtering Pi contains the following mapping:
s(x1)  =  s(x1)
LESSE_IN_GA(x1, x2)  =  LESSE_IN_GA(x1)

We have to consider all (P,R,Pi)-chains

(12) PiDPToQDPProof (SOUND transformation)

Transforming (infinitary) constructor rewriting Pi-DP problem [LOPSTR] into ordinary QDP problem [LPAR04] by application of Pi.

(13) Obligation:

Q DP problem:
The TRS P consists of the following rules:

LESSE_IN_GA(s(T145)) → LESSE_IN_GA(T145)

R is empty.
Q is empty.
We have to consider all (P,Q,R)-chains.

(14) QDPSizeChangeProof (EQUIVALENT transformation)

By using the subterm criterion [SUBTERM_CRITERION] together with the size-change analysis [AAECC05] we have proven that there are no infinite chains for this DP problem.

From the DPs we obtained the following set of size-change graphs:

  • LESSE_IN_GA(s(T145)) → LESSE_IN_GA(T145)
    The graph contains the following edges 1 > 1

(15) YES

(16) Obligation:

Pi DP problem:
The TRS P consists of the following rules:

LESSE_IN_GG(s(T145), s(T147)) → LESSE_IN_GG(T145, T147)

The TRS R consists of the following rules:

inG_in_ag(T6, tree(T6, T7, T8)) → inG_out_ag(T6, tree(T6, T7, T8))
inG_in_ag(0, tree(s(T22), T15, T16)) → U11_ag(T22, T15, T16, inA_in_g(T15))
inA_in_g(tree(0, T35, T36)) → inA_out_g(tree(0, T35, T36))
inA_in_g(tree(T49, T50, T51)) → U1_g(T49, T50, T51, lessB_in_g(T49))
lessB_in_g(s(T60)) → lessB_out_g(s(T60))
U1_g(T49, T50, T51, lessB_out_g(T49)) → inA_out_g(tree(T49, T50, T51))
U1_g(T49, T50, T51, lessB_out_g(T49)) → U2_g(T49, T50, T51, inA_in_g(T50))
U2_g(T49, T50, T51, inA_out_g(T50)) → inA_out_g(tree(T49, T50, T51))
U11_ag(T22, T15, T16, inA_out_g(T15)) → inG_out_ag(0, tree(s(T22), T15, T16))
inG_in_ag(s(T89), tree(s(T88), T15, T16)) → U12_ag(T89, T88, T15, T16, pF_in_agg(T89, T88, T15))
pF_in_agg(T89, T88, T15) → U5_agg(T89, T88, T15, lessD_in_ag(T89, T88))
lessD_in_ag(0, s(T99)) → lessD_out_ag(0, s(T99))
lessD_in_ag(s(T106), s(T105)) → U3_ag(T106, T105, lessD_in_ag(T106, T105))
U3_ag(T106, T105, lessD_out_ag(T106, T105)) → lessD_out_ag(s(T106), s(T105))
U5_agg(T89, T88, T15, lessD_out_ag(T89, T88)) → pF_out_agg(T89, T88, T15)
pF_in_agg(T92, T88, T15) → U6_agg(T92, T88, T15, lessD_in_ag(T92, T88))
U6_agg(T92, T88, T15, lessD_out_ag(T92, T88)) → U7_agg(T92, T88, T15, inG_in_gg(s(T92), T15))
inG_in_gg(T6, tree(T6, T7, T8)) → inG_out_gg(T6, tree(T6, T7, T8))
inG_in_gg(0, tree(s(T22), T15, T16)) → U11_gg(T22, T15, T16, inA_in_g(T15))
U11_gg(T22, T15, T16, inA_out_g(T15)) → inG_out_gg(0, tree(s(T22), T15, T16))
inG_in_gg(s(T89), tree(s(T88), T15, T16)) → U12_gg(T89, T88, T15, T16, pF_in_ggg(T89, T88, T15))
pF_in_ggg(T89, T88, T15) → U5_ggg(T89, T88, T15, lessD_in_gg(T89, T88))
lessD_in_gg(0, s(T99)) → lessD_out_gg(0, s(T99))
lessD_in_gg(s(T106), s(T105)) → U3_gg(T106, T105, lessD_in_gg(T106, T105))
U3_gg(T106, T105, lessD_out_gg(T106, T105)) → lessD_out_gg(s(T106), s(T105))
U5_ggg(T89, T88, T15, lessD_out_gg(T89, T88)) → pF_out_ggg(T89, T88, T15)
pF_in_ggg(T92, T88, T15) → U6_ggg(T92, T88, T15, lessD_in_gg(T92, T88))
U6_ggg(T92, T88, T15, lessD_out_gg(T92, T88)) → U7_ggg(T92, T88, T15, inG_in_gg(s(T92), T15))
inG_in_gg(T130, tree(T127, T128, T129)) → U13_gg(T130, T127, T128, T129, pH_in_ggg(T127, T130, T129))
pH_in_ggg(T127, T130, T129) → U8_ggg(T127, T130, T129, lessE_in_gg(T127, T130))
lessE_in_gg(0, s(T140)) → lessE_out_gg(0, s(T140))
lessE_in_gg(s(T145), s(T147)) → U4_gg(T145, T147, lessE_in_gg(T145, T147))
U4_gg(T145, T147, lessE_out_gg(T145, T147)) → lessE_out_gg(s(T145), s(T147))
U8_ggg(T127, T130, T129, lessE_out_gg(T127, T130)) → pH_out_ggg(T127, T130, T129)
pH_in_ggg(T127, T133, T129) → U9_ggg(T127, T133, T129, lessE_in_gg(T127, T133))
U9_ggg(T127, T133, T129, lessE_out_gg(T127, T133)) → U10_ggg(T127, T133, T129, inG_in_gg(T133, T129))
inG_in_gg(0, tree(s(T169), T162, T163)) → U14_gg(T169, T162, T163, inA_in_g(T162))
U14_gg(T169, T162, T163, inA_out_g(T162)) → inG_out_gg(0, tree(s(T169), T162, T163))
inG_in_gg(s(T184), tree(s(T183), T162, T163)) → U15_gg(T184, T183, T162, T163, pF_in_ggg(T184, T183, T162))
U15_gg(T184, T183, T162, T163, pF_out_ggg(T184, T183, T162)) → inG_out_gg(s(T184), tree(s(T183), T162, T163))
inG_in_gg(T202, tree(T199, T200, T201)) → U16_gg(T202, T199, T200, T201, pH_in_ggg(T199, T202, T201))
U16_gg(T202, T199, T200, T201, pH_out_ggg(T199, T202, T201)) → inG_out_gg(T202, tree(T199, T200, T201))
inG_in_gg(s(T219), tree(0, T211, T212)) → U17_gg(T219, T211, T212, inG_in_gg(s(T219), T212))
inG_in_gg(s(T232), tree(s(T230), T211, T212)) → U18_gg(T232, T230, T211, T212, lessE_in_gg(T230, T232))
U18_gg(T232, T230, T211, T212, lessE_out_gg(T230, T232)) → inG_out_gg(s(T232), tree(s(T230), T211, T212))
inG_in_gg(s(T235), tree(s(T230), T211, T212)) → U19_gg(T235, T230, T211, T212, lessE_in_gg(T230, T235))
U19_gg(T235, T230, T211, T212, lessE_out_gg(T230, T235)) → U20_gg(T235, T230, T211, T212, inG_in_gg(s(T235), T212))
U20_gg(T235, T230, T211, T212, inG_out_gg(s(T235), T212)) → inG_out_gg(s(T235), tree(s(T230), T211, T212))
U17_gg(T219, T211, T212, inG_out_gg(s(T219), T212)) → inG_out_gg(s(T219), tree(0, T211, T212))
U10_ggg(T127, T133, T129, inG_out_gg(T133, T129)) → pH_out_ggg(T127, T133, T129)
U13_gg(T130, T127, T128, T129, pH_out_ggg(T127, T130, T129)) → inG_out_gg(T130, tree(T127, T128, T129))
U7_ggg(T92, T88, T15, inG_out_gg(s(T92), T15)) → pF_out_ggg(T92, T88, T15)
U12_gg(T89, T88, T15, T16, pF_out_ggg(T89, T88, T15)) → inG_out_gg(s(T89), tree(s(T88), T15, T16))
U7_agg(T92, T88, T15, inG_out_gg(s(T92), T15)) → pF_out_agg(T92, T88, T15)
U12_ag(T89, T88, T15, T16, pF_out_agg(T89, T88, T15)) → inG_out_ag(s(T89), tree(s(T88), T15, T16))
inG_in_ag(T130, tree(T127, T128, T129)) → U13_ag(T130, T127, T128, T129, pH_in_gag(T127, T130, T129))
pH_in_gag(T127, T130, T129) → U8_gag(T127, T130, T129, lessE_in_ga(T127, T130))
lessE_in_ga(0, s(T140)) → lessE_out_ga(0, s(T140))
lessE_in_ga(s(T145), s(T147)) → U4_ga(T145, T147, lessE_in_ga(T145, T147))
U4_ga(T145, T147, lessE_out_ga(T145, T147)) → lessE_out_ga(s(T145), s(T147))
U8_gag(T127, T130, T129, lessE_out_ga(T127, T130)) → pH_out_gag(T127, T130, T129)
pH_in_gag(T127, T133, T129) → U9_gag(T127, T133, T129, lessE_in_ga(T127, T133))
U9_gag(T127, T133, T129, lessE_out_ga(T127, T133)) → U10_gag(T127, T133, T129, inG_in_ag(T133, T129))
inG_in_ag(0, tree(s(T169), T162, T163)) → U14_ag(T169, T162, T163, inA_in_g(T162))
U14_ag(T169, T162, T163, inA_out_g(T162)) → inG_out_ag(0, tree(s(T169), T162, T163))
inG_in_ag(s(T184), tree(s(T183), T162, T163)) → U15_ag(T184, T183, T162, T163, pF_in_agg(T184, T183, T162))
U15_ag(T184, T183, T162, T163, pF_out_agg(T184, T183, T162)) → inG_out_ag(s(T184), tree(s(T183), T162, T163))
inG_in_ag(T202, tree(T199, T200, T201)) → U16_ag(T202, T199, T200, T201, pH_in_gag(T199, T202, T201))
U16_ag(T202, T199, T200, T201, pH_out_gag(T199, T202, T201)) → inG_out_ag(T202, tree(T199, T200, T201))
inG_in_ag(s(T219), tree(0, T211, T212)) → U17_ag(T219, T211, T212, inG_in_ag(s(T219), T212))
inG_in_ag(s(T232), tree(s(T230), T211, T212)) → U18_ag(T232, T230, T211, T212, lessE_in_ga(T230, T232))
U18_ag(T232, T230, T211, T212, lessE_out_ga(T230, T232)) → inG_out_ag(s(T232), tree(s(T230), T211, T212))
inG_in_ag(s(T235), tree(s(T230), T211, T212)) → U19_ag(T235, T230, T211, T212, lessE_in_ga(T230, T235))
U19_ag(T235, T230, T211, T212, lessE_out_ga(T230, T235)) → U20_ag(T235, T230, T211, T212, inG_in_ag(s(T235), T212))
U20_ag(T235, T230, T211, T212, inG_out_ag(s(T235), T212)) → inG_out_ag(s(T235), tree(s(T230), T211, T212))
U17_ag(T219, T211, T212, inG_out_ag(s(T219), T212)) → inG_out_ag(s(T219), tree(0, T211, T212))
U10_gag(T127, T133, T129, inG_out_ag(T133, T129)) → pH_out_gag(T127, T133, T129)
U13_ag(T130, T127, T128, T129, pH_out_gag(T127, T130, T129)) → inG_out_ag(T130, tree(T127, T128, T129))

The argument filtering Pi contains the following mapping:
inG_in_ag(x1, x2)  =  inG_in_ag(x2)
tree(x1, x2, x3)  =  tree(x1, x2, x3)
inG_out_ag(x1, x2)  =  inG_out_ag
s(x1)  =  s(x1)
U11_ag(x1, x2, x3, x4)  =  U11_ag(x4)
inA_in_g(x1)  =  inA_in_g(x1)
0  =  0
inA_out_g(x1)  =  inA_out_g
U1_g(x1, x2, x3, x4)  =  U1_g(x2, x4)
lessB_in_g(x1)  =  lessB_in_g(x1)
lessB_out_g(x1)  =  lessB_out_g
U2_g(x1, x2, x3, x4)  =  U2_g(x4)
U12_ag(x1, x2, x3, x4, x5)  =  U12_ag(x5)
pF_in_agg(x1, x2, x3)  =  pF_in_agg(x2, x3)
U5_agg(x1, x2, x3, x4)  =  U5_agg(x4)
lessD_in_ag(x1, x2)  =  lessD_in_ag(x2)
lessD_out_ag(x1, x2)  =  lessD_out_ag(x1)
U3_ag(x1, x2, x3)  =  U3_ag(x3)
pF_out_agg(x1, x2, x3)  =  pF_out_agg(x1)
U6_agg(x1, x2, x3, x4)  =  U6_agg(x3, x4)
U7_agg(x1, x2, x3, x4)  =  U7_agg(x1, x4)
inG_in_gg(x1, x2)  =  inG_in_gg(x1, x2)
inG_out_gg(x1, x2)  =  inG_out_gg
U11_gg(x1, x2, x3, x4)  =  U11_gg(x4)
U12_gg(x1, x2, x3, x4, x5)  =  U12_gg(x5)
pF_in_ggg(x1, x2, x3)  =  pF_in_ggg(x1, x2, x3)
U5_ggg(x1, x2, x3, x4)  =  U5_ggg(x4)
lessD_in_gg(x1, x2)  =  lessD_in_gg(x1, x2)
lessD_out_gg(x1, x2)  =  lessD_out_gg
U3_gg(x1, x2, x3)  =  U3_gg(x3)
pF_out_ggg(x1, x2, x3)  =  pF_out_ggg
U6_ggg(x1, x2, x3, x4)  =  U6_ggg(x1, x3, x4)
U7_ggg(x1, x2, x3, x4)  =  U7_ggg(x4)
U13_gg(x1, x2, x3, x4, x5)  =  U13_gg(x5)
pH_in_ggg(x1, x2, x3)  =  pH_in_ggg(x1, x2, x3)
U8_ggg(x1, x2, x3, x4)  =  U8_ggg(x4)
lessE_in_gg(x1, x2)  =  lessE_in_gg(x1, x2)
lessE_out_gg(x1, x2)  =  lessE_out_gg
U4_gg(x1, x2, x3)  =  U4_gg(x3)
pH_out_ggg(x1, x2, x3)  =  pH_out_ggg
U9_ggg(x1, x2, x3, x4)  =  U9_ggg(x2, x3, x4)
U10_ggg(x1, x2, x3, x4)  =  U10_ggg(x4)
U14_gg(x1, x2, x3, x4)  =  U14_gg(x4)
U15_gg(x1, x2, x3, x4, x5)  =  U15_gg(x5)
U16_gg(x1, x2, x3, x4, x5)  =  U16_gg(x5)
U17_gg(x1, x2, x3, x4)  =  U17_gg(x4)
U18_gg(x1, x2, x3, x4, x5)  =  U18_gg(x5)
U19_gg(x1, x2, x3, x4, x5)  =  U19_gg(x1, x4, x5)
U20_gg(x1, x2, x3, x4, x5)  =  U20_gg(x5)
U13_ag(x1, x2, x3, x4, x5)  =  U13_ag(x5)
pH_in_gag(x1, x2, x3)  =  pH_in_gag(x1, x3)
U8_gag(x1, x2, x3, x4)  =  U8_gag(x4)
lessE_in_ga(x1, x2)  =  lessE_in_ga(x1)
lessE_out_ga(x1, x2)  =  lessE_out_ga
U4_ga(x1, x2, x3)  =  U4_ga(x3)
pH_out_gag(x1, x2, x3)  =  pH_out_gag
U9_gag(x1, x2, x3, x4)  =  U9_gag(x3, x4)
U10_gag(x1, x2, x3, x4)  =  U10_gag(x4)
U14_ag(x1, x2, x3, x4)  =  U14_ag(x4)
U15_ag(x1, x2, x3, x4, x5)  =  U15_ag(x5)
U16_ag(x1, x2, x3, x4, x5)  =  U16_ag(x5)
U17_ag(x1, x2, x3, x4)  =  U17_ag(x4)
U18_ag(x1, x2, x3, x4, x5)  =  U18_ag(x5)
U19_ag(x1, x2, x3, x4, x5)  =  U19_ag(x4, x5)
U20_ag(x1, x2, x3, x4, x5)  =  U20_ag(x5)
LESSE_IN_GG(x1, x2)  =  LESSE_IN_GG(x1, x2)

We have to consider all (P,R,Pi)-chains

(17) UsableRulesProof (EQUIVALENT transformation)

For (infinitary) constructor rewriting [LOPSTR] we can delete all non-usable rules from R.

(18) Obligation:

Pi DP problem:
The TRS P consists of the following rules:

LESSE_IN_GG(s(T145), s(T147)) → LESSE_IN_GG(T145, T147)

R is empty.
Pi is empty.
We have to consider all (P,R,Pi)-chains

(19) PiDPToQDPProof (EQUIVALENT transformation)

Transforming (infinitary) constructor rewriting Pi-DP problem [LOPSTR] into ordinary QDP problem [LPAR04] by application of Pi.

(20) Obligation:

Q DP problem:
The TRS P consists of the following rules:

LESSE_IN_GG(s(T145), s(T147)) → LESSE_IN_GG(T145, T147)

R is empty.
Q is empty.
We have to consider all (P,Q,R)-chains.

(21) QDPSizeChangeProof (EQUIVALENT transformation)

By using the subterm criterion [SUBTERM_CRITERION] together with the size-change analysis [AAECC05] we have proven that there are no infinite chains for this DP problem.

From the DPs we obtained the following set of size-change graphs:

  • LESSE_IN_GG(s(T145), s(T147)) → LESSE_IN_GG(T145, T147)
    The graph contains the following edges 1 > 1, 2 > 2

(22) YES

(23) Obligation:

Pi DP problem:
The TRS P consists of the following rules:

LESSD_IN_GG(s(T106), s(T105)) → LESSD_IN_GG(T106, T105)

The TRS R consists of the following rules:

inG_in_ag(T6, tree(T6, T7, T8)) → inG_out_ag(T6, tree(T6, T7, T8))
inG_in_ag(0, tree(s(T22), T15, T16)) → U11_ag(T22, T15, T16, inA_in_g(T15))
inA_in_g(tree(0, T35, T36)) → inA_out_g(tree(0, T35, T36))
inA_in_g(tree(T49, T50, T51)) → U1_g(T49, T50, T51, lessB_in_g(T49))
lessB_in_g(s(T60)) → lessB_out_g(s(T60))
U1_g(T49, T50, T51, lessB_out_g(T49)) → inA_out_g(tree(T49, T50, T51))
U1_g(T49, T50, T51, lessB_out_g(T49)) → U2_g(T49, T50, T51, inA_in_g(T50))
U2_g(T49, T50, T51, inA_out_g(T50)) → inA_out_g(tree(T49, T50, T51))
U11_ag(T22, T15, T16, inA_out_g(T15)) → inG_out_ag(0, tree(s(T22), T15, T16))
inG_in_ag(s(T89), tree(s(T88), T15, T16)) → U12_ag(T89, T88, T15, T16, pF_in_agg(T89, T88, T15))
pF_in_agg(T89, T88, T15) → U5_agg(T89, T88, T15, lessD_in_ag(T89, T88))
lessD_in_ag(0, s(T99)) → lessD_out_ag(0, s(T99))
lessD_in_ag(s(T106), s(T105)) → U3_ag(T106, T105, lessD_in_ag(T106, T105))
U3_ag(T106, T105, lessD_out_ag(T106, T105)) → lessD_out_ag(s(T106), s(T105))
U5_agg(T89, T88, T15, lessD_out_ag(T89, T88)) → pF_out_agg(T89, T88, T15)
pF_in_agg(T92, T88, T15) → U6_agg(T92, T88, T15, lessD_in_ag(T92, T88))
U6_agg(T92, T88, T15, lessD_out_ag(T92, T88)) → U7_agg(T92, T88, T15, inG_in_gg(s(T92), T15))
inG_in_gg(T6, tree(T6, T7, T8)) → inG_out_gg(T6, tree(T6, T7, T8))
inG_in_gg(0, tree(s(T22), T15, T16)) → U11_gg(T22, T15, T16, inA_in_g(T15))
U11_gg(T22, T15, T16, inA_out_g(T15)) → inG_out_gg(0, tree(s(T22), T15, T16))
inG_in_gg(s(T89), tree(s(T88), T15, T16)) → U12_gg(T89, T88, T15, T16, pF_in_ggg(T89, T88, T15))
pF_in_ggg(T89, T88, T15) → U5_ggg(T89, T88, T15, lessD_in_gg(T89, T88))
lessD_in_gg(0, s(T99)) → lessD_out_gg(0, s(T99))
lessD_in_gg(s(T106), s(T105)) → U3_gg(T106, T105, lessD_in_gg(T106, T105))
U3_gg(T106, T105, lessD_out_gg(T106, T105)) → lessD_out_gg(s(T106), s(T105))
U5_ggg(T89, T88, T15, lessD_out_gg(T89, T88)) → pF_out_ggg(T89, T88, T15)
pF_in_ggg(T92, T88, T15) → U6_ggg(T92, T88, T15, lessD_in_gg(T92, T88))
U6_ggg(T92, T88, T15, lessD_out_gg(T92, T88)) → U7_ggg(T92, T88, T15, inG_in_gg(s(T92), T15))
inG_in_gg(T130, tree(T127, T128, T129)) → U13_gg(T130, T127, T128, T129, pH_in_ggg(T127, T130, T129))
pH_in_ggg(T127, T130, T129) → U8_ggg(T127, T130, T129, lessE_in_gg(T127, T130))
lessE_in_gg(0, s(T140)) → lessE_out_gg(0, s(T140))
lessE_in_gg(s(T145), s(T147)) → U4_gg(T145, T147, lessE_in_gg(T145, T147))
U4_gg(T145, T147, lessE_out_gg(T145, T147)) → lessE_out_gg(s(T145), s(T147))
U8_ggg(T127, T130, T129, lessE_out_gg(T127, T130)) → pH_out_ggg(T127, T130, T129)
pH_in_ggg(T127, T133, T129) → U9_ggg(T127, T133, T129, lessE_in_gg(T127, T133))
U9_ggg(T127, T133, T129, lessE_out_gg(T127, T133)) → U10_ggg(T127, T133, T129, inG_in_gg(T133, T129))
inG_in_gg(0, tree(s(T169), T162, T163)) → U14_gg(T169, T162, T163, inA_in_g(T162))
U14_gg(T169, T162, T163, inA_out_g(T162)) → inG_out_gg(0, tree(s(T169), T162, T163))
inG_in_gg(s(T184), tree(s(T183), T162, T163)) → U15_gg(T184, T183, T162, T163, pF_in_ggg(T184, T183, T162))
U15_gg(T184, T183, T162, T163, pF_out_ggg(T184, T183, T162)) → inG_out_gg(s(T184), tree(s(T183), T162, T163))
inG_in_gg(T202, tree(T199, T200, T201)) → U16_gg(T202, T199, T200, T201, pH_in_ggg(T199, T202, T201))
U16_gg(T202, T199, T200, T201, pH_out_ggg(T199, T202, T201)) → inG_out_gg(T202, tree(T199, T200, T201))
inG_in_gg(s(T219), tree(0, T211, T212)) → U17_gg(T219, T211, T212, inG_in_gg(s(T219), T212))
inG_in_gg(s(T232), tree(s(T230), T211, T212)) → U18_gg(T232, T230, T211, T212, lessE_in_gg(T230, T232))
U18_gg(T232, T230, T211, T212, lessE_out_gg(T230, T232)) → inG_out_gg(s(T232), tree(s(T230), T211, T212))
inG_in_gg(s(T235), tree(s(T230), T211, T212)) → U19_gg(T235, T230, T211, T212, lessE_in_gg(T230, T235))
U19_gg(T235, T230, T211, T212, lessE_out_gg(T230, T235)) → U20_gg(T235, T230, T211, T212, inG_in_gg(s(T235), T212))
U20_gg(T235, T230, T211, T212, inG_out_gg(s(T235), T212)) → inG_out_gg(s(T235), tree(s(T230), T211, T212))
U17_gg(T219, T211, T212, inG_out_gg(s(T219), T212)) → inG_out_gg(s(T219), tree(0, T211, T212))
U10_ggg(T127, T133, T129, inG_out_gg(T133, T129)) → pH_out_ggg(T127, T133, T129)
U13_gg(T130, T127, T128, T129, pH_out_ggg(T127, T130, T129)) → inG_out_gg(T130, tree(T127, T128, T129))
U7_ggg(T92, T88, T15, inG_out_gg(s(T92), T15)) → pF_out_ggg(T92, T88, T15)
U12_gg(T89, T88, T15, T16, pF_out_ggg(T89, T88, T15)) → inG_out_gg(s(T89), tree(s(T88), T15, T16))
U7_agg(T92, T88, T15, inG_out_gg(s(T92), T15)) → pF_out_agg(T92, T88, T15)
U12_ag(T89, T88, T15, T16, pF_out_agg(T89, T88, T15)) → inG_out_ag(s(T89), tree(s(T88), T15, T16))
inG_in_ag(T130, tree(T127, T128, T129)) → U13_ag(T130, T127, T128, T129, pH_in_gag(T127, T130, T129))
pH_in_gag(T127, T130, T129) → U8_gag(T127, T130, T129, lessE_in_ga(T127, T130))
lessE_in_ga(0, s(T140)) → lessE_out_ga(0, s(T140))
lessE_in_ga(s(T145), s(T147)) → U4_ga(T145, T147, lessE_in_ga(T145, T147))
U4_ga(T145, T147, lessE_out_ga(T145, T147)) → lessE_out_ga(s(T145), s(T147))
U8_gag(T127, T130, T129, lessE_out_ga(T127, T130)) → pH_out_gag(T127, T130, T129)
pH_in_gag(T127, T133, T129) → U9_gag(T127, T133, T129, lessE_in_ga(T127, T133))
U9_gag(T127, T133, T129, lessE_out_ga(T127, T133)) → U10_gag(T127, T133, T129, inG_in_ag(T133, T129))
inG_in_ag(0, tree(s(T169), T162, T163)) → U14_ag(T169, T162, T163, inA_in_g(T162))
U14_ag(T169, T162, T163, inA_out_g(T162)) → inG_out_ag(0, tree(s(T169), T162, T163))
inG_in_ag(s(T184), tree(s(T183), T162, T163)) → U15_ag(T184, T183, T162, T163, pF_in_agg(T184, T183, T162))
U15_ag(T184, T183, T162, T163, pF_out_agg(T184, T183, T162)) → inG_out_ag(s(T184), tree(s(T183), T162, T163))
inG_in_ag(T202, tree(T199, T200, T201)) → U16_ag(T202, T199, T200, T201, pH_in_gag(T199, T202, T201))
U16_ag(T202, T199, T200, T201, pH_out_gag(T199, T202, T201)) → inG_out_ag(T202, tree(T199, T200, T201))
inG_in_ag(s(T219), tree(0, T211, T212)) → U17_ag(T219, T211, T212, inG_in_ag(s(T219), T212))
inG_in_ag(s(T232), tree(s(T230), T211, T212)) → U18_ag(T232, T230, T211, T212, lessE_in_ga(T230, T232))
U18_ag(T232, T230, T211, T212, lessE_out_ga(T230, T232)) → inG_out_ag(s(T232), tree(s(T230), T211, T212))
inG_in_ag(s(T235), tree(s(T230), T211, T212)) → U19_ag(T235, T230, T211, T212, lessE_in_ga(T230, T235))
U19_ag(T235, T230, T211, T212, lessE_out_ga(T230, T235)) → U20_ag(T235, T230, T211, T212, inG_in_ag(s(T235), T212))
U20_ag(T235, T230, T211, T212, inG_out_ag(s(T235), T212)) → inG_out_ag(s(T235), tree(s(T230), T211, T212))
U17_ag(T219, T211, T212, inG_out_ag(s(T219), T212)) → inG_out_ag(s(T219), tree(0, T211, T212))
U10_gag(T127, T133, T129, inG_out_ag(T133, T129)) → pH_out_gag(T127, T133, T129)
U13_ag(T130, T127, T128, T129, pH_out_gag(T127, T130, T129)) → inG_out_ag(T130, tree(T127, T128, T129))

The argument filtering Pi contains the following mapping:
inG_in_ag(x1, x2)  =  inG_in_ag(x2)
tree(x1, x2, x3)  =  tree(x1, x2, x3)
inG_out_ag(x1, x2)  =  inG_out_ag
s(x1)  =  s(x1)
U11_ag(x1, x2, x3, x4)  =  U11_ag(x4)
inA_in_g(x1)  =  inA_in_g(x1)
0  =  0
inA_out_g(x1)  =  inA_out_g
U1_g(x1, x2, x3, x4)  =  U1_g(x2, x4)
lessB_in_g(x1)  =  lessB_in_g(x1)
lessB_out_g(x1)  =  lessB_out_g
U2_g(x1, x2, x3, x4)  =  U2_g(x4)
U12_ag(x1, x2, x3, x4, x5)  =  U12_ag(x5)
pF_in_agg(x1, x2, x3)  =  pF_in_agg(x2, x3)
U5_agg(x1, x2, x3, x4)  =  U5_agg(x4)
lessD_in_ag(x1, x2)  =  lessD_in_ag(x2)
lessD_out_ag(x1, x2)  =  lessD_out_ag(x1)
U3_ag(x1, x2, x3)  =  U3_ag(x3)
pF_out_agg(x1, x2, x3)  =  pF_out_agg(x1)
U6_agg(x1, x2, x3, x4)  =  U6_agg(x3, x4)
U7_agg(x1, x2, x3, x4)  =  U7_agg(x1, x4)
inG_in_gg(x1, x2)  =  inG_in_gg(x1, x2)
inG_out_gg(x1, x2)  =  inG_out_gg
U11_gg(x1, x2, x3, x4)  =  U11_gg(x4)
U12_gg(x1, x2, x3, x4, x5)  =  U12_gg(x5)
pF_in_ggg(x1, x2, x3)  =  pF_in_ggg(x1, x2, x3)
U5_ggg(x1, x2, x3, x4)  =  U5_ggg(x4)
lessD_in_gg(x1, x2)  =  lessD_in_gg(x1, x2)
lessD_out_gg(x1, x2)  =  lessD_out_gg
U3_gg(x1, x2, x3)  =  U3_gg(x3)
pF_out_ggg(x1, x2, x3)  =  pF_out_ggg
U6_ggg(x1, x2, x3, x4)  =  U6_ggg(x1, x3, x4)
U7_ggg(x1, x2, x3, x4)  =  U7_ggg(x4)
U13_gg(x1, x2, x3, x4, x5)  =  U13_gg(x5)
pH_in_ggg(x1, x2, x3)  =  pH_in_ggg(x1, x2, x3)
U8_ggg(x1, x2, x3, x4)  =  U8_ggg(x4)
lessE_in_gg(x1, x2)  =  lessE_in_gg(x1, x2)
lessE_out_gg(x1, x2)  =  lessE_out_gg
U4_gg(x1, x2, x3)  =  U4_gg(x3)
pH_out_ggg(x1, x2, x3)  =  pH_out_ggg
U9_ggg(x1, x2, x3, x4)  =  U9_ggg(x2, x3, x4)
U10_ggg(x1, x2, x3, x4)  =  U10_ggg(x4)
U14_gg(x1, x2, x3, x4)  =  U14_gg(x4)
U15_gg(x1, x2, x3, x4, x5)  =  U15_gg(x5)
U16_gg(x1, x2, x3, x4, x5)  =  U16_gg(x5)
U17_gg(x1, x2, x3, x4)  =  U17_gg(x4)
U18_gg(x1, x2, x3, x4, x5)  =  U18_gg(x5)
U19_gg(x1, x2, x3, x4, x5)  =  U19_gg(x1, x4, x5)
U20_gg(x1, x2, x3, x4, x5)  =  U20_gg(x5)
U13_ag(x1, x2, x3, x4, x5)  =  U13_ag(x5)
pH_in_gag(x1, x2, x3)  =  pH_in_gag(x1, x3)
U8_gag(x1, x2, x3, x4)  =  U8_gag(x4)
lessE_in_ga(x1, x2)  =  lessE_in_ga(x1)
lessE_out_ga(x1, x2)  =  lessE_out_ga
U4_ga(x1, x2, x3)  =  U4_ga(x3)
pH_out_gag(x1, x2, x3)  =  pH_out_gag
U9_gag(x1, x2, x3, x4)  =  U9_gag(x3, x4)
U10_gag(x1, x2, x3, x4)  =  U10_gag(x4)
U14_ag(x1, x2, x3, x4)  =  U14_ag(x4)
U15_ag(x1, x2, x3, x4, x5)  =  U15_ag(x5)
U16_ag(x1, x2, x3, x4, x5)  =  U16_ag(x5)
U17_ag(x1, x2, x3, x4)  =  U17_ag(x4)
U18_ag(x1, x2, x3, x4, x5)  =  U18_ag(x5)
U19_ag(x1, x2, x3, x4, x5)  =  U19_ag(x4, x5)
U20_ag(x1, x2, x3, x4, x5)  =  U20_ag(x5)
LESSD_IN_GG(x1, x2)  =  LESSD_IN_GG(x1, x2)

We have to consider all (P,R,Pi)-chains

(24) UsableRulesProof (EQUIVALENT transformation)

For (infinitary) constructor rewriting [LOPSTR] we can delete all non-usable rules from R.

(25) Obligation:

Pi DP problem:
The TRS P consists of the following rules:

LESSD_IN_GG(s(T106), s(T105)) → LESSD_IN_GG(T106, T105)

R is empty.
Pi is empty.
We have to consider all (P,R,Pi)-chains

(26) PiDPToQDPProof (EQUIVALENT transformation)

Transforming (infinitary) constructor rewriting Pi-DP problem [LOPSTR] into ordinary QDP problem [LPAR04] by application of Pi.

(27) Obligation:

Q DP problem:
The TRS P consists of the following rules:

LESSD_IN_GG(s(T106), s(T105)) → LESSD_IN_GG(T106, T105)

R is empty.
Q is empty.
We have to consider all (P,Q,R)-chains.

(28) QDPSizeChangeProof (EQUIVALENT transformation)

By using the subterm criterion [SUBTERM_CRITERION] together with the size-change analysis [AAECC05] we have proven that there are no infinite chains for this DP problem.

From the DPs we obtained the following set of size-change graphs:

  • LESSD_IN_GG(s(T106), s(T105)) → LESSD_IN_GG(T106, T105)
    The graph contains the following edges 1 > 1, 2 > 2

(29) YES

(30) Obligation:

Pi DP problem:
The TRS P consists of the following rules:

LESSD_IN_AG(s(T106), s(T105)) → LESSD_IN_AG(T106, T105)

The TRS R consists of the following rules:

inG_in_ag(T6, tree(T6, T7, T8)) → inG_out_ag(T6, tree(T6, T7, T8))
inG_in_ag(0, tree(s(T22), T15, T16)) → U11_ag(T22, T15, T16, inA_in_g(T15))
inA_in_g(tree(0, T35, T36)) → inA_out_g(tree(0, T35, T36))
inA_in_g(tree(T49, T50, T51)) → U1_g(T49, T50, T51, lessB_in_g(T49))
lessB_in_g(s(T60)) → lessB_out_g(s(T60))
U1_g(T49, T50, T51, lessB_out_g(T49)) → inA_out_g(tree(T49, T50, T51))
U1_g(T49, T50, T51, lessB_out_g(T49)) → U2_g(T49, T50, T51, inA_in_g(T50))
U2_g(T49, T50, T51, inA_out_g(T50)) → inA_out_g(tree(T49, T50, T51))
U11_ag(T22, T15, T16, inA_out_g(T15)) → inG_out_ag(0, tree(s(T22), T15, T16))
inG_in_ag(s(T89), tree(s(T88), T15, T16)) → U12_ag(T89, T88, T15, T16, pF_in_agg(T89, T88, T15))
pF_in_agg(T89, T88, T15) → U5_agg(T89, T88, T15, lessD_in_ag(T89, T88))
lessD_in_ag(0, s(T99)) → lessD_out_ag(0, s(T99))
lessD_in_ag(s(T106), s(T105)) → U3_ag(T106, T105, lessD_in_ag(T106, T105))
U3_ag(T106, T105, lessD_out_ag(T106, T105)) → lessD_out_ag(s(T106), s(T105))
U5_agg(T89, T88, T15, lessD_out_ag(T89, T88)) → pF_out_agg(T89, T88, T15)
pF_in_agg(T92, T88, T15) → U6_agg(T92, T88, T15, lessD_in_ag(T92, T88))
U6_agg(T92, T88, T15, lessD_out_ag(T92, T88)) → U7_agg(T92, T88, T15, inG_in_gg(s(T92), T15))
inG_in_gg(T6, tree(T6, T7, T8)) → inG_out_gg(T6, tree(T6, T7, T8))
inG_in_gg(0, tree(s(T22), T15, T16)) → U11_gg(T22, T15, T16, inA_in_g(T15))
U11_gg(T22, T15, T16, inA_out_g(T15)) → inG_out_gg(0, tree(s(T22), T15, T16))
inG_in_gg(s(T89), tree(s(T88), T15, T16)) → U12_gg(T89, T88, T15, T16, pF_in_ggg(T89, T88, T15))
pF_in_ggg(T89, T88, T15) → U5_ggg(T89, T88, T15, lessD_in_gg(T89, T88))
lessD_in_gg(0, s(T99)) → lessD_out_gg(0, s(T99))
lessD_in_gg(s(T106), s(T105)) → U3_gg(T106, T105, lessD_in_gg(T106, T105))
U3_gg(T106, T105, lessD_out_gg(T106, T105)) → lessD_out_gg(s(T106), s(T105))
U5_ggg(T89, T88, T15, lessD_out_gg(T89, T88)) → pF_out_ggg(T89, T88, T15)
pF_in_ggg(T92, T88, T15) → U6_ggg(T92, T88, T15, lessD_in_gg(T92, T88))
U6_ggg(T92, T88, T15, lessD_out_gg(T92, T88)) → U7_ggg(T92, T88, T15, inG_in_gg(s(T92), T15))
inG_in_gg(T130, tree(T127, T128, T129)) → U13_gg(T130, T127, T128, T129, pH_in_ggg(T127, T130, T129))
pH_in_ggg(T127, T130, T129) → U8_ggg(T127, T130, T129, lessE_in_gg(T127, T130))
lessE_in_gg(0, s(T140)) → lessE_out_gg(0, s(T140))
lessE_in_gg(s(T145), s(T147)) → U4_gg(T145, T147, lessE_in_gg(T145, T147))
U4_gg(T145, T147, lessE_out_gg(T145, T147)) → lessE_out_gg(s(T145), s(T147))
U8_ggg(T127, T130, T129, lessE_out_gg(T127, T130)) → pH_out_ggg(T127, T130, T129)
pH_in_ggg(T127, T133, T129) → U9_ggg(T127, T133, T129, lessE_in_gg(T127, T133))
U9_ggg(T127, T133, T129, lessE_out_gg(T127, T133)) → U10_ggg(T127, T133, T129, inG_in_gg(T133, T129))
inG_in_gg(0, tree(s(T169), T162, T163)) → U14_gg(T169, T162, T163, inA_in_g(T162))
U14_gg(T169, T162, T163, inA_out_g(T162)) → inG_out_gg(0, tree(s(T169), T162, T163))
inG_in_gg(s(T184), tree(s(T183), T162, T163)) → U15_gg(T184, T183, T162, T163, pF_in_ggg(T184, T183, T162))
U15_gg(T184, T183, T162, T163, pF_out_ggg(T184, T183, T162)) → inG_out_gg(s(T184), tree(s(T183), T162, T163))
inG_in_gg(T202, tree(T199, T200, T201)) → U16_gg(T202, T199, T200, T201, pH_in_ggg(T199, T202, T201))
U16_gg(T202, T199, T200, T201, pH_out_ggg(T199, T202, T201)) → inG_out_gg(T202, tree(T199, T200, T201))
inG_in_gg(s(T219), tree(0, T211, T212)) → U17_gg(T219, T211, T212, inG_in_gg(s(T219), T212))
inG_in_gg(s(T232), tree(s(T230), T211, T212)) → U18_gg(T232, T230, T211, T212, lessE_in_gg(T230, T232))
U18_gg(T232, T230, T211, T212, lessE_out_gg(T230, T232)) → inG_out_gg(s(T232), tree(s(T230), T211, T212))
inG_in_gg(s(T235), tree(s(T230), T211, T212)) → U19_gg(T235, T230, T211, T212, lessE_in_gg(T230, T235))
U19_gg(T235, T230, T211, T212, lessE_out_gg(T230, T235)) → U20_gg(T235, T230, T211, T212, inG_in_gg(s(T235), T212))
U20_gg(T235, T230, T211, T212, inG_out_gg(s(T235), T212)) → inG_out_gg(s(T235), tree(s(T230), T211, T212))
U17_gg(T219, T211, T212, inG_out_gg(s(T219), T212)) → inG_out_gg(s(T219), tree(0, T211, T212))
U10_ggg(T127, T133, T129, inG_out_gg(T133, T129)) → pH_out_ggg(T127, T133, T129)
U13_gg(T130, T127, T128, T129, pH_out_ggg(T127, T130, T129)) → inG_out_gg(T130, tree(T127, T128, T129))
U7_ggg(T92, T88, T15, inG_out_gg(s(T92), T15)) → pF_out_ggg(T92, T88, T15)
U12_gg(T89, T88, T15, T16, pF_out_ggg(T89, T88, T15)) → inG_out_gg(s(T89), tree(s(T88), T15, T16))
U7_agg(T92, T88, T15, inG_out_gg(s(T92), T15)) → pF_out_agg(T92, T88, T15)
U12_ag(T89, T88, T15, T16, pF_out_agg(T89, T88, T15)) → inG_out_ag(s(T89), tree(s(T88), T15, T16))
inG_in_ag(T130, tree(T127, T128, T129)) → U13_ag(T130, T127, T128, T129, pH_in_gag(T127, T130, T129))
pH_in_gag(T127, T130, T129) → U8_gag(T127, T130, T129, lessE_in_ga(T127, T130))
lessE_in_ga(0, s(T140)) → lessE_out_ga(0, s(T140))
lessE_in_ga(s(T145), s(T147)) → U4_ga(T145, T147, lessE_in_ga(T145, T147))
U4_ga(T145, T147, lessE_out_ga(T145, T147)) → lessE_out_ga(s(T145), s(T147))
U8_gag(T127, T130, T129, lessE_out_ga(T127, T130)) → pH_out_gag(T127, T130, T129)
pH_in_gag(T127, T133, T129) → U9_gag(T127, T133, T129, lessE_in_ga(T127, T133))
U9_gag(T127, T133, T129, lessE_out_ga(T127, T133)) → U10_gag(T127, T133, T129, inG_in_ag(T133, T129))
inG_in_ag(0, tree(s(T169), T162, T163)) → U14_ag(T169, T162, T163, inA_in_g(T162))
U14_ag(T169, T162, T163, inA_out_g(T162)) → inG_out_ag(0, tree(s(T169), T162, T163))
inG_in_ag(s(T184), tree(s(T183), T162, T163)) → U15_ag(T184, T183, T162, T163, pF_in_agg(T184, T183, T162))
U15_ag(T184, T183, T162, T163, pF_out_agg(T184, T183, T162)) → inG_out_ag(s(T184), tree(s(T183), T162, T163))
inG_in_ag(T202, tree(T199, T200, T201)) → U16_ag(T202, T199, T200, T201, pH_in_gag(T199, T202, T201))
U16_ag(T202, T199, T200, T201, pH_out_gag(T199, T202, T201)) → inG_out_ag(T202, tree(T199, T200, T201))
inG_in_ag(s(T219), tree(0, T211, T212)) → U17_ag(T219, T211, T212, inG_in_ag(s(T219), T212))
inG_in_ag(s(T232), tree(s(T230), T211, T212)) → U18_ag(T232, T230, T211, T212, lessE_in_ga(T230, T232))
U18_ag(T232, T230, T211, T212, lessE_out_ga(T230, T232)) → inG_out_ag(s(T232), tree(s(T230), T211, T212))
inG_in_ag(s(T235), tree(s(T230), T211, T212)) → U19_ag(T235, T230, T211, T212, lessE_in_ga(T230, T235))
U19_ag(T235, T230, T211, T212, lessE_out_ga(T230, T235)) → U20_ag(T235, T230, T211, T212, inG_in_ag(s(T235), T212))
U20_ag(T235, T230, T211, T212, inG_out_ag(s(T235), T212)) → inG_out_ag(s(T235), tree(s(T230), T211, T212))
U17_ag(T219, T211, T212, inG_out_ag(s(T219), T212)) → inG_out_ag(s(T219), tree(0, T211, T212))
U10_gag(T127, T133, T129, inG_out_ag(T133, T129)) → pH_out_gag(T127, T133, T129)
U13_ag(T130, T127, T128, T129, pH_out_gag(T127, T130, T129)) → inG_out_ag(T130, tree(T127, T128, T129))

The argument filtering Pi contains the following mapping:
inG_in_ag(x1, x2)  =  inG_in_ag(x2)
tree(x1, x2, x3)  =  tree(x1, x2, x3)
inG_out_ag(x1, x2)  =  inG_out_ag
s(x1)  =  s(x1)
U11_ag(x1, x2, x3, x4)  =  U11_ag(x4)
inA_in_g(x1)  =  inA_in_g(x1)
0  =  0
inA_out_g(x1)  =  inA_out_g
U1_g(x1, x2, x3, x4)  =  U1_g(x2, x4)
lessB_in_g(x1)  =  lessB_in_g(x1)
lessB_out_g(x1)  =  lessB_out_g
U2_g(x1, x2, x3, x4)  =  U2_g(x4)
U12_ag(x1, x2, x3, x4, x5)  =  U12_ag(x5)
pF_in_agg(x1, x2, x3)  =  pF_in_agg(x2, x3)
U5_agg(x1, x2, x3, x4)  =  U5_agg(x4)
lessD_in_ag(x1, x2)  =  lessD_in_ag(x2)
lessD_out_ag(x1, x2)  =  lessD_out_ag(x1)
U3_ag(x1, x2, x3)  =  U3_ag(x3)
pF_out_agg(x1, x2, x3)  =  pF_out_agg(x1)
U6_agg(x1, x2, x3, x4)  =  U6_agg(x3, x4)
U7_agg(x1, x2, x3, x4)  =  U7_agg(x1, x4)
inG_in_gg(x1, x2)  =  inG_in_gg(x1, x2)
inG_out_gg(x1, x2)  =  inG_out_gg
U11_gg(x1, x2, x3, x4)  =  U11_gg(x4)
U12_gg(x1, x2, x3, x4, x5)  =  U12_gg(x5)
pF_in_ggg(x1, x2, x3)  =  pF_in_ggg(x1, x2, x3)
U5_ggg(x1, x2, x3, x4)  =  U5_ggg(x4)
lessD_in_gg(x1, x2)  =  lessD_in_gg(x1, x2)
lessD_out_gg(x1, x2)  =  lessD_out_gg
U3_gg(x1, x2, x3)  =  U3_gg(x3)
pF_out_ggg(x1, x2, x3)  =  pF_out_ggg
U6_ggg(x1, x2, x3, x4)  =  U6_ggg(x1, x3, x4)
U7_ggg(x1, x2, x3, x4)  =  U7_ggg(x4)
U13_gg(x1, x2, x3, x4, x5)  =  U13_gg(x5)
pH_in_ggg(x1, x2, x3)  =  pH_in_ggg(x1, x2, x3)
U8_ggg(x1, x2, x3, x4)  =  U8_ggg(x4)
lessE_in_gg(x1, x2)  =  lessE_in_gg(x1, x2)
lessE_out_gg(x1, x2)  =  lessE_out_gg
U4_gg(x1, x2, x3)  =  U4_gg(x3)
pH_out_ggg(x1, x2, x3)  =  pH_out_ggg
U9_ggg(x1, x2, x3, x4)  =  U9_ggg(x2, x3, x4)
U10_ggg(x1, x2, x3, x4)  =  U10_ggg(x4)
U14_gg(x1, x2, x3, x4)  =  U14_gg(x4)
U15_gg(x1, x2, x3, x4, x5)  =  U15_gg(x5)
U16_gg(x1, x2, x3, x4, x5)  =  U16_gg(x5)
U17_gg(x1, x2, x3, x4)  =  U17_gg(x4)
U18_gg(x1, x2, x3, x4, x5)  =  U18_gg(x5)
U19_gg(x1, x2, x3, x4, x5)  =  U19_gg(x1, x4, x5)
U20_gg(x1, x2, x3, x4, x5)  =  U20_gg(x5)
U13_ag(x1, x2, x3, x4, x5)  =  U13_ag(x5)
pH_in_gag(x1, x2, x3)  =  pH_in_gag(x1, x3)
U8_gag(x1, x2, x3, x4)  =  U8_gag(x4)
lessE_in_ga(x1, x2)  =  lessE_in_ga(x1)
lessE_out_ga(x1, x2)  =  lessE_out_ga
U4_ga(x1, x2, x3)  =  U4_ga(x3)
pH_out_gag(x1, x2, x3)  =  pH_out_gag
U9_gag(x1, x2, x3, x4)  =  U9_gag(x3, x4)
U10_gag(x1, x2, x3, x4)  =  U10_gag(x4)
U14_ag(x1, x2, x3, x4)  =  U14_ag(x4)
U15_ag(x1, x2, x3, x4, x5)  =  U15_ag(x5)
U16_ag(x1, x2, x3, x4, x5)  =  U16_ag(x5)
U17_ag(x1, x2, x3, x4)  =  U17_ag(x4)
U18_ag(x1, x2, x3, x4, x5)  =  U18_ag(x5)
U19_ag(x1, x2, x3, x4, x5)  =  U19_ag(x4, x5)
U20_ag(x1, x2, x3, x4, x5)  =  U20_ag(x5)
LESSD_IN_AG(x1, x2)  =  LESSD_IN_AG(x2)

We have to consider all (P,R,Pi)-chains

(31) UsableRulesProof (EQUIVALENT transformation)

For (infinitary) constructor rewriting [LOPSTR] we can delete all non-usable rules from R.

(32) Obligation:

Pi DP problem:
The TRS P consists of the following rules:

LESSD_IN_AG(s(T106), s(T105)) → LESSD_IN_AG(T106, T105)

R is empty.
The argument filtering Pi contains the following mapping:
s(x1)  =  s(x1)
LESSD_IN_AG(x1, x2)  =  LESSD_IN_AG(x2)

We have to consider all (P,R,Pi)-chains

(33) PiDPToQDPProof (SOUND transformation)

Transforming (infinitary) constructor rewriting Pi-DP problem [LOPSTR] into ordinary QDP problem [LPAR04] by application of Pi.

(34) Obligation:

Q DP problem:
The TRS P consists of the following rules:

LESSD_IN_AG(s(T105)) → LESSD_IN_AG(T105)

R is empty.
Q is empty.
We have to consider all (P,Q,R)-chains.

(35) QDPSizeChangeProof (EQUIVALENT transformation)

By using the subterm criterion [SUBTERM_CRITERION] together with the size-change analysis [AAECC05] we have proven that there are no infinite chains for this DP problem.

From the DPs we obtained the following set of size-change graphs:

  • LESSD_IN_AG(s(T105)) → LESSD_IN_AG(T105)
    The graph contains the following edges 1 > 1

(36) YES

(37) Obligation:

Pi DP problem:
The TRS P consists of the following rules:

U1_G(T49, T50, T51, lessB_out_g(T49)) → INA_IN_G(T50)
INA_IN_G(tree(T49, T50, T51)) → U1_G(T49, T50, T51, lessB_in_g(T49))

The TRS R consists of the following rules:

inG_in_ag(T6, tree(T6, T7, T8)) → inG_out_ag(T6, tree(T6, T7, T8))
inG_in_ag(0, tree(s(T22), T15, T16)) → U11_ag(T22, T15, T16, inA_in_g(T15))
inA_in_g(tree(0, T35, T36)) → inA_out_g(tree(0, T35, T36))
inA_in_g(tree(T49, T50, T51)) → U1_g(T49, T50, T51, lessB_in_g(T49))
lessB_in_g(s(T60)) → lessB_out_g(s(T60))
U1_g(T49, T50, T51, lessB_out_g(T49)) → inA_out_g(tree(T49, T50, T51))
U1_g(T49, T50, T51, lessB_out_g(T49)) → U2_g(T49, T50, T51, inA_in_g(T50))
U2_g(T49, T50, T51, inA_out_g(T50)) → inA_out_g(tree(T49, T50, T51))
U11_ag(T22, T15, T16, inA_out_g(T15)) → inG_out_ag(0, tree(s(T22), T15, T16))
inG_in_ag(s(T89), tree(s(T88), T15, T16)) → U12_ag(T89, T88, T15, T16, pF_in_agg(T89, T88, T15))
pF_in_agg(T89, T88, T15) → U5_agg(T89, T88, T15, lessD_in_ag(T89, T88))
lessD_in_ag(0, s(T99)) → lessD_out_ag(0, s(T99))
lessD_in_ag(s(T106), s(T105)) → U3_ag(T106, T105, lessD_in_ag(T106, T105))
U3_ag(T106, T105, lessD_out_ag(T106, T105)) → lessD_out_ag(s(T106), s(T105))
U5_agg(T89, T88, T15, lessD_out_ag(T89, T88)) → pF_out_agg(T89, T88, T15)
pF_in_agg(T92, T88, T15) → U6_agg(T92, T88, T15, lessD_in_ag(T92, T88))
U6_agg(T92, T88, T15, lessD_out_ag(T92, T88)) → U7_agg(T92, T88, T15, inG_in_gg(s(T92), T15))
inG_in_gg(T6, tree(T6, T7, T8)) → inG_out_gg(T6, tree(T6, T7, T8))
inG_in_gg(0, tree(s(T22), T15, T16)) → U11_gg(T22, T15, T16, inA_in_g(T15))
U11_gg(T22, T15, T16, inA_out_g(T15)) → inG_out_gg(0, tree(s(T22), T15, T16))
inG_in_gg(s(T89), tree(s(T88), T15, T16)) → U12_gg(T89, T88, T15, T16, pF_in_ggg(T89, T88, T15))
pF_in_ggg(T89, T88, T15) → U5_ggg(T89, T88, T15, lessD_in_gg(T89, T88))
lessD_in_gg(0, s(T99)) → lessD_out_gg(0, s(T99))
lessD_in_gg(s(T106), s(T105)) → U3_gg(T106, T105, lessD_in_gg(T106, T105))
U3_gg(T106, T105, lessD_out_gg(T106, T105)) → lessD_out_gg(s(T106), s(T105))
U5_ggg(T89, T88, T15, lessD_out_gg(T89, T88)) → pF_out_ggg(T89, T88, T15)
pF_in_ggg(T92, T88, T15) → U6_ggg(T92, T88, T15, lessD_in_gg(T92, T88))
U6_ggg(T92, T88, T15, lessD_out_gg(T92, T88)) → U7_ggg(T92, T88, T15, inG_in_gg(s(T92), T15))
inG_in_gg(T130, tree(T127, T128, T129)) → U13_gg(T130, T127, T128, T129, pH_in_ggg(T127, T130, T129))
pH_in_ggg(T127, T130, T129) → U8_ggg(T127, T130, T129, lessE_in_gg(T127, T130))
lessE_in_gg(0, s(T140)) → lessE_out_gg(0, s(T140))
lessE_in_gg(s(T145), s(T147)) → U4_gg(T145, T147, lessE_in_gg(T145, T147))
U4_gg(T145, T147, lessE_out_gg(T145, T147)) → lessE_out_gg(s(T145), s(T147))
U8_ggg(T127, T130, T129, lessE_out_gg(T127, T130)) → pH_out_ggg(T127, T130, T129)
pH_in_ggg(T127, T133, T129) → U9_ggg(T127, T133, T129, lessE_in_gg(T127, T133))
U9_ggg(T127, T133, T129, lessE_out_gg(T127, T133)) → U10_ggg(T127, T133, T129, inG_in_gg(T133, T129))
inG_in_gg(0, tree(s(T169), T162, T163)) → U14_gg(T169, T162, T163, inA_in_g(T162))
U14_gg(T169, T162, T163, inA_out_g(T162)) → inG_out_gg(0, tree(s(T169), T162, T163))
inG_in_gg(s(T184), tree(s(T183), T162, T163)) → U15_gg(T184, T183, T162, T163, pF_in_ggg(T184, T183, T162))
U15_gg(T184, T183, T162, T163, pF_out_ggg(T184, T183, T162)) → inG_out_gg(s(T184), tree(s(T183), T162, T163))
inG_in_gg(T202, tree(T199, T200, T201)) → U16_gg(T202, T199, T200, T201, pH_in_ggg(T199, T202, T201))
U16_gg(T202, T199, T200, T201, pH_out_ggg(T199, T202, T201)) → inG_out_gg(T202, tree(T199, T200, T201))
inG_in_gg(s(T219), tree(0, T211, T212)) → U17_gg(T219, T211, T212, inG_in_gg(s(T219), T212))
inG_in_gg(s(T232), tree(s(T230), T211, T212)) → U18_gg(T232, T230, T211, T212, lessE_in_gg(T230, T232))
U18_gg(T232, T230, T211, T212, lessE_out_gg(T230, T232)) → inG_out_gg(s(T232), tree(s(T230), T211, T212))
inG_in_gg(s(T235), tree(s(T230), T211, T212)) → U19_gg(T235, T230, T211, T212, lessE_in_gg(T230, T235))
U19_gg(T235, T230, T211, T212, lessE_out_gg(T230, T235)) → U20_gg(T235, T230, T211, T212, inG_in_gg(s(T235), T212))
U20_gg(T235, T230, T211, T212, inG_out_gg(s(T235), T212)) → inG_out_gg(s(T235), tree(s(T230), T211, T212))
U17_gg(T219, T211, T212, inG_out_gg(s(T219), T212)) → inG_out_gg(s(T219), tree(0, T211, T212))
U10_ggg(T127, T133, T129, inG_out_gg(T133, T129)) → pH_out_ggg(T127, T133, T129)
U13_gg(T130, T127, T128, T129, pH_out_ggg(T127, T130, T129)) → inG_out_gg(T130, tree(T127, T128, T129))
U7_ggg(T92, T88, T15, inG_out_gg(s(T92), T15)) → pF_out_ggg(T92, T88, T15)
U12_gg(T89, T88, T15, T16, pF_out_ggg(T89, T88, T15)) → inG_out_gg(s(T89), tree(s(T88), T15, T16))
U7_agg(T92, T88, T15, inG_out_gg(s(T92), T15)) → pF_out_agg(T92, T88, T15)
U12_ag(T89, T88, T15, T16, pF_out_agg(T89, T88, T15)) → inG_out_ag(s(T89), tree(s(T88), T15, T16))
inG_in_ag(T130, tree(T127, T128, T129)) → U13_ag(T130, T127, T128, T129, pH_in_gag(T127, T130, T129))
pH_in_gag(T127, T130, T129) → U8_gag(T127, T130, T129, lessE_in_ga(T127, T130))
lessE_in_ga(0, s(T140)) → lessE_out_ga(0, s(T140))
lessE_in_ga(s(T145), s(T147)) → U4_ga(T145, T147, lessE_in_ga(T145, T147))
U4_ga(T145, T147, lessE_out_ga(T145, T147)) → lessE_out_ga(s(T145), s(T147))
U8_gag(T127, T130, T129, lessE_out_ga(T127, T130)) → pH_out_gag(T127, T130, T129)
pH_in_gag(T127, T133, T129) → U9_gag(T127, T133, T129, lessE_in_ga(T127, T133))
U9_gag(T127, T133, T129, lessE_out_ga(T127, T133)) → U10_gag(T127, T133, T129, inG_in_ag(T133, T129))
inG_in_ag(0, tree(s(T169), T162, T163)) → U14_ag(T169, T162, T163, inA_in_g(T162))
U14_ag(T169, T162, T163, inA_out_g(T162)) → inG_out_ag(0, tree(s(T169), T162, T163))
inG_in_ag(s(T184), tree(s(T183), T162, T163)) → U15_ag(T184, T183, T162, T163, pF_in_agg(T184, T183, T162))
U15_ag(T184, T183, T162, T163, pF_out_agg(T184, T183, T162)) → inG_out_ag(s(T184), tree(s(T183), T162, T163))
inG_in_ag(T202, tree(T199, T200, T201)) → U16_ag(T202, T199, T200, T201, pH_in_gag(T199, T202, T201))
U16_ag(T202, T199, T200, T201, pH_out_gag(T199, T202, T201)) → inG_out_ag(T202, tree(T199, T200, T201))
inG_in_ag(s(T219), tree(0, T211, T212)) → U17_ag(T219, T211, T212, inG_in_ag(s(T219), T212))
inG_in_ag(s(T232), tree(s(T230), T211, T212)) → U18_ag(T232, T230, T211, T212, lessE_in_ga(T230, T232))
U18_ag(T232, T230, T211, T212, lessE_out_ga(T230, T232)) → inG_out_ag(s(T232), tree(s(T230), T211, T212))
inG_in_ag(s(T235), tree(s(T230), T211, T212)) → U19_ag(T235, T230, T211, T212, lessE_in_ga(T230, T235))
U19_ag(T235, T230, T211, T212, lessE_out_ga(T230, T235)) → U20_ag(T235, T230, T211, T212, inG_in_ag(s(T235), T212))
U20_ag(T235, T230, T211, T212, inG_out_ag(s(T235), T212)) → inG_out_ag(s(T235), tree(s(T230), T211, T212))
U17_ag(T219, T211, T212, inG_out_ag(s(T219), T212)) → inG_out_ag(s(T219), tree(0, T211, T212))
U10_gag(T127, T133, T129, inG_out_ag(T133, T129)) → pH_out_gag(T127, T133, T129)
U13_ag(T130, T127, T128, T129, pH_out_gag(T127, T130, T129)) → inG_out_ag(T130, tree(T127, T128, T129))

The argument filtering Pi contains the following mapping:
inG_in_ag(x1, x2)  =  inG_in_ag(x2)
tree(x1, x2, x3)  =  tree(x1, x2, x3)
inG_out_ag(x1, x2)  =  inG_out_ag
s(x1)  =  s(x1)
U11_ag(x1, x2, x3, x4)  =  U11_ag(x4)
inA_in_g(x1)  =  inA_in_g(x1)
0  =  0
inA_out_g(x1)  =  inA_out_g
U1_g(x1, x2, x3, x4)  =  U1_g(x2, x4)
lessB_in_g(x1)  =  lessB_in_g(x1)
lessB_out_g(x1)  =  lessB_out_g
U2_g(x1, x2, x3, x4)  =  U2_g(x4)
U12_ag(x1, x2, x3, x4, x5)  =  U12_ag(x5)
pF_in_agg(x1, x2, x3)  =  pF_in_agg(x2, x3)
U5_agg(x1, x2, x3, x4)  =  U5_agg(x4)
lessD_in_ag(x1, x2)  =  lessD_in_ag(x2)
lessD_out_ag(x1, x2)  =  lessD_out_ag(x1)
U3_ag(x1, x2, x3)  =  U3_ag(x3)
pF_out_agg(x1, x2, x3)  =  pF_out_agg(x1)
U6_agg(x1, x2, x3, x4)  =  U6_agg(x3, x4)
U7_agg(x1, x2, x3, x4)  =  U7_agg(x1, x4)
inG_in_gg(x1, x2)  =  inG_in_gg(x1, x2)
inG_out_gg(x1, x2)  =  inG_out_gg
U11_gg(x1, x2, x3, x4)  =  U11_gg(x4)
U12_gg(x1, x2, x3, x4, x5)  =  U12_gg(x5)
pF_in_ggg(x1, x2, x3)  =  pF_in_ggg(x1, x2, x3)
U5_ggg(x1, x2, x3, x4)  =  U5_ggg(x4)
lessD_in_gg(x1, x2)  =  lessD_in_gg(x1, x2)
lessD_out_gg(x1, x2)  =  lessD_out_gg
U3_gg(x1, x2, x3)  =  U3_gg(x3)
pF_out_ggg(x1, x2, x3)  =  pF_out_ggg
U6_ggg(x1, x2, x3, x4)  =  U6_ggg(x1, x3, x4)
U7_ggg(x1, x2, x3, x4)  =  U7_ggg(x4)
U13_gg(x1, x2, x3, x4, x5)  =  U13_gg(x5)
pH_in_ggg(x1, x2, x3)  =  pH_in_ggg(x1, x2, x3)
U8_ggg(x1, x2, x3, x4)  =  U8_ggg(x4)
lessE_in_gg(x1, x2)  =  lessE_in_gg(x1, x2)
lessE_out_gg(x1, x2)  =  lessE_out_gg
U4_gg(x1, x2, x3)  =  U4_gg(x3)
pH_out_ggg(x1, x2, x3)  =  pH_out_ggg
U9_ggg(x1, x2, x3, x4)  =  U9_ggg(x2, x3, x4)
U10_ggg(x1, x2, x3, x4)  =  U10_ggg(x4)
U14_gg(x1, x2, x3, x4)  =  U14_gg(x4)
U15_gg(x1, x2, x3, x4, x5)  =  U15_gg(x5)
U16_gg(x1, x2, x3, x4, x5)  =  U16_gg(x5)
U17_gg(x1, x2, x3, x4)  =  U17_gg(x4)
U18_gg(x1, x2, x3, x4, x5)  =  U18_gg(x5)
U19_gg(x1, x2, x3, x4, x5)  =  U19_gg(x1, x4, x5)
U20_gg(x1, x2, x3, x4, x5)  =  U20_gg(x5)
U13_ag(x1, x2, x3, x4, x5)  =  U13_ag(x5)
pH_in_gag(x1, x2, x3)  =  pH_in_gag(x1, x3)
U8_gag(x1, x2, x3, x4)  =  U8_gag(x4)
lessE_in_ga(x1, x2)  =  lessE_in_ga(x1)
lessE_out_ga(x1, x2)  =  lessE_out_ga
U4_ga(x1, x2, x3)  =  U4_ga(x3)
pH_out_gag(x1, x2, x3)  =  pH_out_gag
U9_gag(x1, x2, x3, x4)  =  U9_gag(x3, x4)
U10_gag(x1, x2, x3, x4)  =  U10_gag(x4)
U14_ag(x1, x2, x3, x4)  =  U14_ag(x4)
U15_ag(x1, x2, x3, x4, x5)  =  U15_ag(x5)
U16_ag(x1, x2, x3, x4, x5)  =  U16_ag(x5)
U17_ag(x1, x2, x3, x4)  =  U17_ag(x4)
U18_ag(x1, x2, x3, x4, x5)  =  U18_ag(x5)
U19_ag(x1, x2, x3, x4, x5)  =  U19_ag(x4, x5)
U20_ag(x1, x2, x3, x4, x5)  =  U20_ag(x5)
INA_IN_G(x1)  =  INA_IN_G(x1)
U1_G(x1, x2, x3, x4)  =  U1_G(x2, x4)

We have to consider all (P,R,Pi)-chains

(38) UsableRulesProof (EQUIVALENT transformation)

For (infinitary) constructor rewriting [LOPSTR] we can delete all non-usable rules from R.

(39) Obligation:

Pi DP problem:
The TRS P consists of the following rules:

U1_G(T49, T50, T51, lessB_out_g(T49)) → INA_IN_G(T50)
INA_IN_G(tree(T49, T50, T51)) → U1_G(T49, T50, T51, lessB_in_g(T49))

The TRS R consists of the following rules:

lessB_in_g(s(T60)) → lessB_out_g(s(T60))

The argument filtering Pi contains the following mapping:
tree(x1, x2, x3)  =  tree(x1, x2, x3)
s(x1)  =  s(x1)
lessB_in_g(x1)  =  lessB_in_g(x1)
lessB_out_g(x1)  =  lessB_out_g
INA_IN_G(x1)  =  INA_IN_G(x1)
U1_G(x1, x2, x3, x4)  =  U1_G(x2, x4)

We have to consider all (P,R,Pi)-chains

(40) PiDPToQDPProof (SOUND transformation)

Transforming (infinitary) constructor rewriting Pi-DP problem [LOPSTR] into ordinary QDP problem [LPAR04] by application of Pi.

(41) Obligation:

Q DP problem:
The TRS P consists of the following rules:

U1_G(T50, lessB_out_g) → INA_IN_G(T50)
INA_IN_G(tree(T49, T50, T51)) → U1_G(T50, lessB_in_g(T49))

The TRS R consists of the following rules:

lessB_in_g(s(T60)) → lessB_out_g

The set Q consists of the following terms:

lessB_in_g(x0)

We have to consider all (P,Q,R)-chains.

(42) QDPSizeChangeProof (EQUIVALENT transformation)

By using the subterm criterion [SUBTERM_CRITERION] together with the size-change analysis [AAECC05] we have proven that there are no infinite chains for this DP problem.

From the DPs we obtained the following set of size-change graphs:

  • INA_IN_G(tree(T49, T50, T51)) → U1_G(T50, lessB_in_g(T49))
    The graph contains the following edges 1 > 1

  • U1_G(T50, lessB_out_g) → INA_IN_G(T50)
    The graph contains the following edges 1 >= 1

(43) YES

(44) Obligation:

Pi DP problem:
The TRS P consists of the following rules:

ING_IN_GG(s(T89), tree(s(T88), T15, T16)) → PF_IN_GGG(T89, T88, T15)
PF_IN_GGG(T92, T88, T15) → U6_GGG(T92, T88, T15, lessD_in_gg(T92, T88))
U6_GGG(T92, T88, T15, lessD_out_gg(T92, T88)) → ING_IN_GG(s(T92), T15)
ING_IN_GG(T130, tree(T127, T128, T129)) → PH_IN_GGG(T127, T130, T129)
PH_IN_GGG(T127, T133, T129) → U9_GGG(T127, T133, T129, lessE_in_gg(T127, T133))
U9_GGG(T127, T133, T129, lessE_out_gg(T127, T133)) → ING_IN_GG(T133, T129)
ING_IN_GG(s(T219), tree(0, T211, T212)) → ING_IN_GG(s(T219), T212)
ING_IN_GG(s(T235), tree(s(T230), T211, T212)) → U19_GG(T235, T230, T211, T212, lessE_in_gg(T230, T235))
U19_GG(T235, T230, T211, T212, lessE_out_gg(T230, T235)) → ING_IN_GG(s(T235), T212)

The TRS R consists of the following rules:

inG_in_ag(T6, tree(T6, T7, T8)) → inG_out_ag(T6, tree(T6, T7, T8))
inG_in_ag(0, tree(s(T22), T15, T16)) → U11_ag(T22, T15, T16, inA_in_g(T15))
inA_in_g(tree(0, T35, T36)) → inA_out_g(tree(0, T35, T36))
inA_in_g(tree(T49, T50, T51)) → U1_g(T49, T50, T51, lessB_in_g(T49))
lessB_in_g(s(T60)) → lessB_out_g(s(T60))
U1_g(T49, T50, T51, lessB_out_g(T49)) → inA_out_g(tree(T49, T50, T51))
U1_g(T49, T50, T51, lessB_out_g(T49)) → U2_g(T49, T50, T51, inA_in_g(T50))
U2_g(T49, T50, T51, inA_out_g(T50)) → inA_out_g(tree(T49, T50, T51))
U11_ag(T22, T15, T16, inA_out_g(T15)) → inG_out_ag(0, tree(s(T22), T15, T16))
inG_in_ag(s(T89), tree(s(T88), T15, T16)) → U12_ag(T89, T88, T15, T16, pF_in_agg(T89, T88, T15))
pF_in_agg(T89, T88, T15) → U5_agg(T89, T88, T15, lessD_in_ag(T89, T88))
lessD_in_ag(0, s(T99)) → lessD_out_ag(0, s(T99))
lessD_in_ag(s(T106), s(T105)) → U3_ag(T106, T105, lessD_in_ag(T106, T105))
U3_ag(T106, T105, lessD_out_ag(T106, T105)) → lessD_out_ag(s(T106), s(T105))
U5_agg(T89, T88, T15, lessD_out_ag(T89, T88)) → pF_out_agg(T89, T88, T15)
pF_in_agg(T92, T88, T15) → U6_agg(T92, T88, T15, lessD_in_ag(T92, T88))
U6_agg(T92, T88, T15, lessD_out_ag(T92, T88)) → U7_agg(T92, T88, T15, inG_in_gg(s(T92), T15))
inG_in_gg(T6, tree(T6, T7, T8)) → inG_out_gg(T6, tree(T6, T7, T8))
inG_in_gg(0, tree(s(T22), T15, T16)) → U11_gg(T22, T15, T16, inA_in_g(T15))
U11_gg(T22, T15, T16, inA_out_g(T15)) → inG_out_gg(0, tree(s(T22), T15, T16))
inG_in_gg(s(T89), tree(s(T88), T15, T16)) → U12_gg(T89, T88, T15, T16, pF_in_ggg(T89, T88, T15))
pF_in_ggg(T89, T88, T15) → U5_ggg(T89, T88, T15, lessD_in_gg(T89, T88))
lessD_in_gg(0, s(T99)) → lessD_out_gg(0, s(T99))
lessD_in_gg(s(T106), s(T105)) → U3_gg(T106, T105, lessD_in_gg(T106, T105))
U3_gg(T106, T105, lessD_out_gg(T106, T105)) → lessD_out_gg(s(T106), s(T105))
U5_ggg(T89, T88, T15, lessD_out_gg(T89, T88)) → pF_out_ggg(T89, T88, T15)
pF_in_ggg(T92, T88, T15) → U6_ggg(T92, T88, T15, lessD_in_gg(T92, T88))
U6_ggg(T92, T88, T15, lessD_out_gg(T92, T88)) → U7_ggg(T92, T88, T15, inG_in_gg(s(T92), T15))
inG_in_gg(T130, tree(T127, T128, T129)) → U13_gg(T130, T127, T128, T129, pH_in_ggg(T127, T130, T129))
pH_in_ggg(T127, T130, T129) → U8_ggg(T127, T130, T129, lessE_in_gg(T127, T130))
lessE_in_gg(0, s(T140)) → lessE_out_gg(0, s(T140))
lessE_in_gg(s(T145), s(T147)) → U4_gg(T145, T147, lessE_in_gg(T145, T147))
U4_gg(T145, T147, lessE_out_gg(T145, T147)) → lessE_out_gg(s(T145), s(T147))
U8_ggg(T127, T130, T129, lessE_out_gg(T127, T130)) → pH_out_ggg(T127, T130, T129)
pH_in_ggg(T127, T133, T129) → U9_ggg(T127, T133, T129, lessE_in_gg(T127, T133))
U9_ggg(T127, T133, T129, lessE_out_gg(T127, T133)) → U10_ggg(T127, T133, T129, inG_in_gg(T133, T129))
inG_in_gg(0, tree(s(T169), T162, T163)) → U14_gg(T169, T162, T163, inA_in_g(T162))
U14_gg(T169, T162, T163, inA_out_g(T162)) → inG_out_gg(0, tree(s(T169), T162, T163))
inG_in_gg(s(T184), tree(s(T183), T162, T163)) → U15_gg(T184, T183, T162, T163, pF_in_ggg(T184, T183, T162))
U15_gg(T184, T183, T162, T163, pF_out_ggg(T184, T183, T162)) → inG_out_gg(s(T184), tree(s(T183), T162, T163))
inG_in_gg(T202, tree(T199, T200, T201)) → U16_gg(T202, T199, T200, T201, pH_in_ggg(T199, T202, T201))
U16_gg(T202, T199, T200, T201, pH_out_ggg(T199, T202, T201)) → inG_out_gg(T202, tree(T199, T200, T201))
inG_in_gg(s(T219), tree(0, T211, T212)) → U17_gg(T219, T211, T212, inG_in_gg(s(T219), T212))
inG_in_gg(s(T232), tree(s(T230), T211, T212)) → U18_gg(T232, T230, T211, T212, lessE_in_gg(T230, T232))
U18_gg(T232, T230, T211, T212, lessE_out_gg(T230, T232)) → inG_out_gg(s(T232), tree(s(T230), T211, T212))
inG_in_gg(s(T235), tree(s(T230), T211, T212)) → U19_gg(T235, T230, T211, T212, lessE_in_gg(T230, T235))
U19_gg(T235, T230, T211, T212, lessE_out_gg(T230, T235)) → U20_gg(T235, T230, T211, T212, inG_in_gg(s(T235), T212))
U20_gg(T235, T230, T211, T212, inG_out_gg(s(T235), T212)) → inG_out_gg(s(T235), tree(s(T230), T211, T212))
U17_gg(T219, T211, T212, inG_out_gg(s(T219), T212)) → inG_out_gg(s(T219), tree(0, T211, T212))
U10_ggg(T127, T133, T129, inG_out_gg(T133, T129)) → pH_out_ggg(T127, T133, T129)
U13_gg(T130, T127, T128, T129, pH_out_ggg(T127, T130, T129)) → inG_out_gg(T130, tree(T127, T128, T129))
U7_ggg(T92, T88, T15, inG_out_gg(s(T92), T15)) → pF_out_ggg(T92, T88, T15)
U12_gg(T89, T88, T15, T16, pF_out_ggg(T89, T88, T15)) → inG_out_gg(s(T89), tree(s(T88), T15, T16))
U7_agg(T92, T88, T15, inG_out_gg(s(T92), T15)) → pF_out_agg(T92, T88, T15)
U12_ag(T89, T88, T15, T16, pF_out_agg(T89, T88, T15)) → inG_out_ag(s(T89), tree(s(T88), T15, T16))
inG_in_ag(T130, tree(T127, T128, T129)) → U13_ag(T130, T127, T128, T129, pH_in_gag(T127, T130, T129))
pH_in_gag(T127, T130, T129) → U8_gag(T127, T130, T129, lessE_in_ga(T127, T130))
lessE_in_ga(0, s(T140)) → lessE_out_ga(0, s(T140))
lessE_in_ga(s(T145), s(T147)) → U4_ga(T145, T147, lessE_in_ga(T145, T147))
U4_ga(T145, T147, lessE_out_ga(T145, T147)) → lessE_out_ga(s(T145), s(T147))
U8_gag(T127, T130, T129, lessE_out_ga(T127, T130)) → pH_out_gag(T127, T130, T129)
pH_in_gag(T127, T133, T129) → U9_gag(T127, T133, T129, lessE_in_ga(T127, T133))
U9_gag(T127, T133, T129, lessE_out_ga(T127, T133)) → U10_gag(T127, T133, T129, inG_in_ag(T133, T129))
inG_in_ag(0, tree(s(T169), T162, T163)) → U14_ag(T169, T162, T163, inA_in_g(T162))
U14_ag(T169, T162, T163, inA_out_g(T162)) → inG_out_ag(0, tree(s(T169), T162, T163))
inG_in_ag(s(T184), tree(s(T183), T162, T163)) → U15_ag(T184, T183, T162, T163, pF_in_agg(T184, T183, T162))
U15_ag(T184, T183, T162, T163, pF_out_agg(T184, T183, T162)) → inG_out_ag(s(T184), tree(s(T183), T162, T163))
inG_in_ag(T202, tree(T199, T200, T201)) → U16_ag(T202, T199, T200, T201, pH_in_gag(T199, T202, T201))
U16_ag(T202, T199, T200, T201, pH_out_gag(T199, T202, T201)) → inG_out_ag(T202, tree(T199, T200, T201))
inG_in_ag(s(T219), tree(0, T211, T212)) → U17_ag(T219, T211, T212, inG_in_ag(s(T219), T212))
inG_in_ag(s(T232), tree(s(T230), T211, T212)) → U18_ag(T232, T230, T211, T212, lessE_in_ga(T230, T232))
U18_ag(T232, T230, T211, T212, lessE_out_ga(T230, T232)) → inG_out_ag(s(T232), tree(s(T230), T211, T212))
inG_in_ag(s(T235), tree(s(T230), T211, T212)) → U19_ag(T235, T230, T211, T212, lessE_in_ga(T230, T235))
U19_ag(T235, T230, T211, T212, lessE_out_ga(T230, T235)) → U20_ag(T235, T230, T211, T212, inG_in_ag(s(T235), T212))
U20_ag(T235, T230, T211, T212, inG_out_ag(s(T235), T212)) → inG_out_ag(s(T235), tree(s(T230), T211, T212))
U17_ag(T219, T211, T212, inG_out_ag(s(T219), T212)) → inG_out_ag(s(T219), tree(0, T211, T212))
U10_gag(T127, T133, T129, inG_out_ag(T133, T129)) → pH_out_gag(T127, T133, T129)
U13_ag(T130, T127, T128, T129, pH_out_gag(T127, T130, T129)) → inG_out_ag(T130, tree(T127, T128, T129))

The argument filtering Pi contains the following mapping:
inG_in_ag(x1, x2)  =  inG_in_ag(x2)
tree(x1, x2, x3)  =  tree(x1, x2, x3)
inG_out_ag(x1, x2)  =  inG_out_ag
s(x1)  =  s(x1)
U11_ag(x1, x2, x3, x4)  =  U11_ag(x4)
inA_in_g(x1)  =  inA_in_g(x1)
0  =  0
inA_out_g(x1)  =  inA_out_g
U1_g(x1, x2, x3, x4)  =  U1_g(x2, x4)
lessB_in_g(x1)  =  lessB_in_g(x1)
lessB_out_g(x1)  =  lessB_out_g
U2_g(x1, x2, x3, x4)  =  U2_g(x4)
U12_ag(x1, x2, x3, x4, x5)  =  U12_ag(x5)
pF_in_agg(x1, x2, x3)  =  pF_in_agg(x2, x3)
U5_agg(x1, x2, x3, x4)  =  U5_agg(x4)
lessD_in_ag(x1, x2)  =  lessD_in_ag(x2)
lessD_out_ag(x1, x2)  =  lessD_out_ag(x1)
U3_ag(x1, x2, x3)  =  U3_ag(x3)
pF_out_agg(x1, x2, x3)  =  pF_out_agg(x1)
U6_agg(x1, x2, x3, x4)  =  U6_agg(x3, x4)
U7_agg(x1, x2, x3, x4)  =  U7_agg(x1, x4)
inG_in_gg(x1, x2)  =  inG_in_gg(x1, x2)
inG_out_gg(x1, x2)  =  inG_out_gg
U11_gg(x1, x2, x3, x4)  =  U11_gg(x4)
U12_gg(x1, x2, x3, x4, x5)  =  U12_gg(x5)
pF_in_ggg(x1, x2, x3)  =  pF_in_ggg(x1, x2, x3)
U5_ggg(x1, x2, x3, x4)  =  U5_ggg(x4)
lessD_in_gg(x1, x2)  =  lessD_in_gg(x1, x2)
lessD_out_gg(x1, x2)  =  lessD_out_gg
U3_gg(x1, x2, x3)  =  U3_gg(x3)
pF_out_ggg(x1, x2, x3)  =  pF_out_ggg
U6_ggg(x1, x2, x3, x4)  =  U6_ggg(x1, x3, x4)
U7_ggg(x1, x2, x3, x4)  =  U7_ggg(x4)
U13_gg(x1, x2, x3, x4, x5)  =  U13_gg(x5)
pH_in_ggg(x1, x2, x3)  =  pH_in_ggg(x1, x2, x3)
U8_ggg(x1, x2, x3, x4)  =  U8_ggg(x4)
lessE_in_gg(x1, x2)  =  lessE_in_gg(x1, x2)
lessE_out_gg(x1, x2)  =  lessE_out_gg
U4_gg(x1, x2, x3)  =  U4_gg(x3)
pH_out_ggg(x1, x2, x3)  =  pH_out_ggg
U9_ggg(x1, x2, x3, x4)  =  U9_ggg(x2, x3, x4)
U10_ggg(x1, x2, x3, x4)  =  U10_ggg(x4)
U14_gg(x1, x2, x3, x4)  =  U14_gg(x4)
U15_gg(x1, x2, x3, x4, x5)  =  U15_gg(x5)
U16_gg(x1, x2, x3, x4, x5)  =  U16_gg(x5)
U17_gg(x1, x2, x3, x4)  =  U17_gg(x4)
U18_gg(x1, x2, x3, x4, x5)  =  U18_gg(x5)
U19_gg(x1, x2, x3, x4, x5)  =  U19_gg(x1, x4, x5)
U20_gg(x1, x2, x3, x4, x5)  =  U20_gg(x5)
U13_ag(x1, x2, x3, x4, x5)  =  U13_ag(x5)
pH_in_gag(x1, x2, x3)  =  pH_in_gag(x1, x3)
U8_gag(x1, x2, x3, x4)  =  U8_gag(x4)
lessE_in_ga(x1, x2)  =  lessE_in_ga(x1)
lessE_out_ga(x1, x2)  =  lessE_out_ga
U4_ga(x1, x2, x3)  =  U4_ga(x3)
pH_out_gag(x1, x2, x3)  =  pH_out_gag
U9_gag(x1, x2, x3, x4)  =  U9_gag(x3, x4)
U10_gag(x1, x2, x3, x4)  =  U10_gag(x4)
U14_ag(x1, x2, x3, x4)  =  U14_ag(x4)
U15_ag(x1, x2, x3, x4, x5)  =  U15_ag(x5)
U16_ag(x1, x2, x3, x4, x5)  =  U16_ag(x5)
U17_ag(x1, x2, x3, x4)  =  U17_ag(x4)
U18_ag(x1, x2, x3, x4, x5)  =  U18_ag(x5)
U19_ag(x1, x2, x3, x4, x5)  =  U19_ag(x4, x5)
U20_ag(x1, x2, x3, x4, x5)  =  U20_ag(x5)
ING_IN_GG(x1, x2)  =  ING_IN_GG(x1, x2)
PF_IN_GGG(x1, x2, x3)  =  PF_IN_GGG(x1, x2, x3)
U6_GGG(x1, x2, x3, x4)  =  U6_GGG(x1, x3, x4)
PH_IN_GGG(x1, x2, x3)  =  PH_IN_GGG(x1, x2, x3)
U9_GGG(x1, x2, x3, x4)  =  U9_GGG(x2, x3, x4)
U19_GG(x1, x2, x3, x4, x5)  =  U19_GG(x1, x4, x5)

We have to consider all (P,R,Pi)-chains

(45) UsableRulesProof (EQUIVALENT transformation)

For (infinitary) constructor rewriting [LOPSTR] we can delete all non-usable rules from R.

(46) Obligation:

Pi DP problem:
The TRS P consists of the following rules:

ING_IN_GG(s(T89), tree(s(T88), T15, T16)) → PF_IN_GGG(T89, T88, T15)
PF_IN_GGG(T92, T88, T15) → U6_GGG(T92, T88, T15, lessD_in_gg(T92, T88))
U6_GGG(T92, T88, T15, lessD_out_gg(T92, T88)) → ING_IN_GG(s(T92), T15)
ING_IN_GG(T130, tree(T127, T128, T129)) → PH_IN_GGG(T127, T130, T129)
PH_IN_GGG(T127, T133, T129) → U9_GGG(T127, T133, T129, lessE_in_gg(T127, T133))
U9_GGG(T127, T133, T129, lessE_out_gg(T127, T133)) → ING_IN_GG(T133, T129)
ING_IN_GG(s(T219), tree(0, T211, T212)) → ING_IN_GG(s(T219), T212)
ING_IN_GG(s(T235), tree(s(T230), T211, T212)) → U19_GG(T235, T230, T211, T212, lessE_in_gg(T230, T235))
U19_GG(T235, T230, T211, T212, lessE_out_gg(T230, T235)) → ING_IN_GG(s(T235), T212)

The TRS R consists of the following rules:

lessD_in_gg(0, s(T99)) → lessD_out_gg(0, s(T99))
lessD_in_gg(s(T106), s(T105)) → U3_gg(T106, T105, lessD_in_gg(T106, T105))
lessE_in_gg(0, s(T140)) → lessE_out_gg(0, s(T140))
lessE_in_gg(s(T145), s(T147)) → U4_gg(T145, T147, lessE_in_gg(T145, T147))
U3_gg(T106, T105, lessD_out_gg(T106, T105)) → lessD_out_gg(s(T106), s(T105))
U4_gg(T145, T147, lessE_out_gg(T145, T147)) → lessE_out_gg(s(T145), s(T147))

The argument filtering Pi contains the following mapping:
tree(x1, x2, x3)  =  tree(x1, x2, x3)
s(x1)  =  s(x1)
0  =  0
lessD_in_gg(x1, x2)  =  lessD_in_gg(x1, x2)
lessD_out_gg(x1, x2)  =  lessD_out_gg
U3_gg(x1, x2, x3)  =  U3_gg(x3)
lessE_in_gg(x1, x2)  =  lessE_in_gg(x1, x2)
lessE_out_gg(x1, x2)  =  lessE_out_gg
U4_gg(x1, x2, x3)  =  U4_gg(x3)
ING_IN_GG(x1, x2)  =  ING_IN_GG(x1, x2)
PF_IN_GGG(x1, x2, x3)  =  PF_IN_GGG(x1, x2, x3)
U6_GGG(x1, x2, x3, x4)  =  U6_GGG(x1, x3, x4)
PH_IN_GGG(x1, x2, x3)  =  PH_IN_GGG(x1, x2, x3)
U9_GGG(x1, x2, x3, x4)  =  U9_GGG(x2, x3, x4)
U19_GG(x1, x2, x3, x4, x5)  =  U19_GG(x1, x4, x5)

We have to consider all (P,R,Pi)-chains

(47) PiDPToQDPProof (SOUND transformation)

Transforming (infinitary) constructor rewriting Pi-DP problem [LOPSTR] into ordinary QDP problem [LPAR04] by application of Pi.

(48) Obligation:

Q DP problem:
The TRS P consists of the following rules:

ING_IN_GG(s(T89), tree(s(T88), T15, T16)) → PF_IN_GGG(T89, T88, T15)
PF_IN_GGG(T92, T88, T15) → U6_GGG(T92, T15, lessD_in_gg(T92, T88))
U6_GGG(T92, T15, lessD_out_gg) → ING_IN_GG(s(T92), T15)
ING_IN_GG(T130, tree(T127, T128, T129)) → PH_IN_GGG(T127, T130, T129)
PH_IN_GGG(T127, T133, T129) → U9_GGG(T133, T129, lessE_in_gg(T127, T133))
U9_GGG(T133, T129, lessE_out_gg) → ING_IN_GG(T133, T129)
ING_IN_GG(s(T219), tree(0, T211, T212)) → ING_IN_GG(s(T219), T212)
ING_IN_GG(s(T235), tree(s(T230), T211, T212)) → U19_GG(T235, T212, lessE_in_gg(T230, T235))
U19_GG(T235, T212, lessE_out_gg) → ING_IN_GG(s(T235), T212)

The TRS R consists of the following rules:

lessD_in_gg(0, s(T99)) → lessD_out_gg
lessD_in_gg(s(T106), s(T105)) → U3_gg(lessD_in_gg(T106, T105))
lessE_in_gg(0, s(T140)) → lessE_out_gg
lessE_in_gg(s(T145), s(T147)) → U4_gg(lessE_in_gg(T145, T147))
U3_gg(lessD_out_gg) → lessD_out_gg
U4_gg(lessE_out_gg) → lessE_out_gg

The set Q consists of the following terms:

lessD_in_gg(x0, x1)
lessE_in_gg(x0, x1)
U3_gg(x0)
U4_gg(x0)

We have to consider all (P,Q,R)-chains.

(49) QDPSizeChangeProof (EQUIVALENT transformation)

By using the subterm criterion [SUBTERM_CRITERION] together with the size-change analysis [AAECC05] we have proven that there are no infinite chains for this DP problem.

From the DPs we obtained the following set of size-change graphs:

  • PF_IN_GGG(T92, T88, T15) → U6_GGG(T92, T15, lessD_in_gg(T92, T88))
    The graph contains the following edges 1 >= 1, 3 >= 2

  • U6_GGG(T92, T15, lessD_out_gg) → ING_IN_GG(s(T92), T15)
    The graph contains the following edges 2 >= 2

  • ING_IN_GG(s(T89), tree(s(T88), T15, T16)) → PF_IN_GGG(T89, T88, T15)
    The graph contains the following edges 1 > 1, 2 > 2, 2 > 3

  • ING_IN_GG(s(T219), tree(0, T211, T212)) → ING_IN_GG(s(T219), T212)
    The graph contains the following edges 1 >= 1, 2 > 2

  • PH_IN_GGG(T127, T133, T129) → U9_GGG(T133, T129, lessE_in_gg(T127, T133))
    The graph contains the following edges 2 >= 1, 3 >= 2

  • U9_GGG(T133, T129, lessE_out_gg) → ING_IN_GG(T133, T129)
    The graph contains the following edges 1 >= 1, 2 >= 2

  • U19_GG(T235, T212, lessE_out_gg) → ING_IN_GG(s(T235), T212)
    The graph contains the following edges 2 >= 2

  • ING_IN_GG(T130, tree(T127, T128, T129)) → PH_IN_GGG(T127, T130, T129)
    The graph contains the following edges 2 > 1, 1 >= 2, 2 > 3

  • ING_IN_GG(s(T235), tree(s(T230), T211, T212)) → U19_GG(T235, T212, lessE_in_gg(T230, T235))
    The graph contains the following edges 1 > 1, 2 > 2

(50) YES

(51) Obligation:

Pi DP problem:
The TRS P consists of the following rules:

ING_IN_AG(T130, tree(T127, T128, T129)) → PH_IN_GAG(T127, T130, T129)
PH_IN_GAG(T127, T133, T129) → U9_GAG(T127, T133, T129, lessE_in_ga(T127, T133))
U9_GAG(T127, T133, T129, lessE_out_ga(T127, T133)) → ING_IN_AG(T133, T129)
ING_IN_AG(s(T219), tree(0, T211, T212)) → ING_IN_AG(s(T219), T212)
ING_IN_AG(s(T235), tree(s(T230), T211, T212)) → U19_AG(T235, T230, T211, T212, lessE_in_ga(T230, T235))
U19_AG(T235, T230, T211, T212, lessE_out_ga(T230, T235)) → ING_IN_AG(s(T235), T212)

The TRS R consists of the following rules:

inG_in_ag(T6, tree(T6, T7, T8)) → inG_out_ag(T6, tree(T6, T7, T8))
inG_in_ag(0, tree(s(T22), T15, T16)) → U11_ag(T22, T15, T16, inA_in_g(T15))
inA_in_g(tree(0, T35, T36)) → inA_out_g(tree(0, T35, T36))
inA_in_g(tree(T49, T50, T51)) → U1_g(T49, T50, T51, lessB_in_g(T49))
lessB_in_g(s(T60)) → lessB_out_g(s(T60))
U1_g(T49, T50, T51, lessB_out_g(T49)) → inA_out_g(tree(T49, T50, T51))
U1_g(T49, T50, T51, lessB_out_g(T49)) → U2_g(T49, T50, T51, inA_in_g(T50))
U2_g(T49, T50, T51, inA_out_g(T50)) → inA_out_g(tree(T49, T50, T51))
U11_ag(T22, T15, T16, inA_out_g(T15)) → inG_out_ag(0, tree(s(T22), T15, T16))
inG_in_ag(s(T89), tree(s(T88), T15, T16)) → U12_ag(T89, T88, T15, T16, pF_in_agg(T89, T88, T15))
pF_in_agg(T89, T88, T15) → U5_agg(T89, T88, T15, lessD_in_ag(T89, T88))
lessD_in_ag(0, s(T99)) → lessD_out_ag(0, s(T99))
lessD_in_ag(s(T106), s(T105)) → U3_ag(T106, T105, lessD_in_ag(T106, T105))
U3_ag(T106, T105, lessD_out_ag(T106, T105)) → lessD_out_ag(s(T106), s(T105))
U5_agg(T89, T88, T15, lessD_out_ag(T89, T88)) → pF_out_agg(T89, T88, T15)
pF_in_agg(T92, T88, T15) → U6_agg(T92, T88, T15, lessD_in_ag(T92, T88))
U6_agg(T92, T88, T15, lessD_out_ag(T92, T88)) → U7_agg(T92, T88, T15, inG_in_gg(s(T92), T15))
inG_in_gg(T6, tree(T6, T7, T8)) → inG_out_gg(T6, tree(T6, T7, T8))
inG_in_gg(0, tree(s(T22), T15, T16)) → U11_gg(T22, T15, T16, inA_in_g(T15))
U11_gg(T22, T15, T16, inA_out_g(T15)) → inG_out_gg(0, tree(s(T22), T15, T16))
inG_in_gg(s(T89), tree(s(T88), T15, T16)) → U12_gg(T89, T88, T15, T16, pF_in_ggg(T89, T88, T15))
pF_in_ggg(T89, T88, T15) → U5_ggg(T89, T88, T15, lessD_in_gg(T89, T88))
lessD_in_gg(0, s(T99)) → lessD_out_gg(0, s(T99))
lessD_in_gg(s(T106), s(T105)) → U3_gg(T106, T105, lessD_in_gg(T106, T105))
U3_gg(T106, T105, lessD_out_gg(T106, T105)) → lessD_out_gg(s(T106), s(T105))
U5_ggg(T89, T88, T15, lessD_out_gg(T89, T88)) → pF_out_ggg(T89, T88, T15)
pF_in_ggg(T92, T88, T15) → U6_ggg(T92, T88, T15, lessD_in_gg(T92, T88))
U6_ggg(T92, T88, T15, lessD_out_gg(T92, T88)) → U7_ggg(T92, T88, T15, inG_in_gg(s(T92), T15))
inG_in_gg(T130, tree(T127, T128, T129)) → U13_gg(T130, T127, T128, T129, pH_in_ggg(T127, T130, T129))
pH_in_ggg(T127, T130, T129) → U8_ggg(T127, T130, T129, lessE_in_gg(T127, T130))
lessE_in_gg(0, s(T140)) → lessE_out_gg(0, s(T140))
lessE_in_gg(s(T145), s(T147)) → U4_gg(T145, T147, lessE_in_gg(T145, T147))
U4_gg(T145, T147, lessE_out_gg(T145, T147)) → lessE_out_gg(s(T145), s(T147))
U8_ggg(T127, T130, T129, lessE_out_gg(T127, T130)) → pH_out_ggg(T127, T130, T129)
pH_in_ggg(T127, T133, T129) → U9_ggg(T127, T133, T129, lessE_in_gg(T127, T133))
U9_ggg(T127, T133, T129, lessE_out_gg(T127, T133)) → U10_ggg(T127, T133, T129, inG_in_gg(T133, T129))
inG_in_gg(0, tree(s(T169), T162, T163)) → U14_gg(T169, T162, T163, inA_in_g(T162))
U14_gg(T169, T162, T163, inA_out_g(T162)) → inG_out_gg(0, tree(s(T169), T162, T163))
inG_in_gg(s(T184), tree(s(T183), T162, T163)) → U15_gg(T184, T183, T162, T163, pF_in_ggg(T184, T183, T162))
U15_gg(T184, T183, T162, T163, pF_out_ggg(T184, T183, T162)) → inG_out_gg(s(T184), tree(s(T183), T162, T163))
inG_in_gg(T202, tree(T199, T200, T201)) → U16_gg(T202, T199, T200, T201, pH_in_ggg(T199, T202, T201))
U16_gg(T202, T199, T200, T201, pH_out_ggg(T199, T202, T201)) → inG_out_gg(T202, tree(T199, T200, T201))
inG_in_gg(s(T219), tree(0, T211, T212)) → U17_gg(T219, T211, T212, inG_in_gg(s(T219), T212))
inG_in_gg(s(T232), tree(s(T230), T211, T212)) → U18_gg(T232, T230, T211, T212, lessE_in_gg(T230, T232))
U18_gg(T232, T230, T211, T212, lessE_out_gg(T230, T232)) → inG_out_gg(s(T232), tree(s(T230), T211, T212))
inG_in_gg(s(T235), tree(s(T230), T211, T212)) → U19_gg(T235, T230, T211, T212, lessE_in_gg(T230, T235))
U19_gg(T235, T230, T211, T212, lessE_out_gg(T230, T235)) → U20_gg(T235, T230, T211, T212, inG_in_gg(s(T235), T212))
U20_gg(T235, T230, T211, T212, inG_out_gg(s(T235), T212)) → inG_out_gg(s(T235), tree(s(T230), T211, T212))
U17_gg(T219, T211, T212, inG_out_gg(s(T219), T212)) → inG_out_gg(s(T219), tree(0, T211, T212))
U10_ggg(T127, T133, T129, inG_out_gg(T133, T129)) → pH_out_ggg(T127, T133, T129)
U13_gg(T130, T127, T128, T129, pH_out_ggg(T127, T130, T129)) → inG_out_gg(T130, tree(T127, T128, T129))
U7_ggg(T92, T88, T15, inG_out_gg(s(T92), T15)) → pF_out_ggg(T92, T88, T15)
U12_gg(T89, T88, T15, T16, pF_out_ggg(T89, T88, T15)) → inG_out_gg(s(T89), tree(s(T88), T15, T16))
U7_agg(T92, T88, T15, inG_out_gg(s(T92), T15)) → pF_out_agg(T92, T88, T15)
U12_ag(T89, T88, T15, T16, pF_out_agg(T89, T88, T15)) → inG_out_ag(s(T89), tree(s(T88), T15, T16))
inG_in_ag(T130, tree(T127, T128, T129)) → U13_ag(T130, T127, T128, T129, pH_in_gag(T127, T130, T129))
pH_in_gag(T127, T130, T129) → U8_gag(T127, T130, T129, lessE_in_ga(T127, T130))
lessE_in_ga(0, s(T140)) → lessE_out_ga(0, s(T140))
lessE_in_ga(s(T145), s(T147)) → U4_ga(T145, T147, lessE_in_ga(T145, T147))
U4_ga(T145, T147, lessE_out_ga(T145, T147)) → lessE_out_ga(s(T145), s(T147))
U8_gag(T127, T130, T129, lessE_out_ga(T127, T130)) → pH_out_gag(T127, T130, T129)
pH_in_gag(T127, T133, T129) → U9_gag(T127, T133, T129, lessE_in_ga(T127, T133))
U9_gag(T127, T133, T129, lessE_out_ga(T127, T133)) → U10_gag(T127, T133, T129, inG_in_ag(T133, T129))
inG_in_ag(0, tree(s(T169), T162, T163)) → U14_ag(T169, T162, T163, inA_in_g(T162))
U14_ag(T169, T162, T163, inA_out_g(T162)) → inG_out_ag(0, tree(s(T169), T162, T163))
inG_in_ag(s(T184), tree(s(T183), T162, T163)) → U15_ag(T184, T183, T162, T163, pF_in_agg(T184, T183, T162))
U15_ag(T184, T183, T162, T163, pF_out_agg(T184, T183, T162)) → inG_out_ag(s(T184), tree(s(T183), T162, T163))
inG_in_ag(T202, tree(T199, T200, T201)) → U16_ag(T202, T199, T200, T201, pH_in_gag(T199, T202, T201))
U16_ag(T202, T199, T200, T201, pH_out_gag(T199, T202, T201)) → inG_out_ag(T202, tree(T199, T200, T201))
inG_in_ag(s(T219), tree(0, T211, T212)) → U17_ag(T219, T211, T212, inG_in_ag(s(T219), T212))
inG_in_ag(s(T232), tree(s(T230), T211, T212)) → U18_ag(T232, T230, T211, T212, lessE_in_ga(T230, T232))
U18_ag(T232, T230, T211, T212, lessE_out_ga(T230, T232)) → inG_out_ag(s(T232), tree(s(T230), T211, T212))
inG_in_ag(s(T235), tree(s(T230), T211, T212)) → U19_ag(T235, T230, T211, T212, lessE_in_ga(T230, T235))
U19_ag(T235, T230, T211, T212, lessE_out_ga(T230, T235)) → U20_ag(T235, T230, T211, T212, inG_in_ag(s(T235), T212))
U20_ag(T235, T230, T211, T212, inG_out_ag(s(T235), T212)) → inG_out_ag(s(T235), tree(s(T230), T211, T212))
U17_ag(T219, T211, T212, inG_out_ag(s(T219), T212)) → inG_out_ag(s(T219), tree(0, T211, T212))
U10_gag(T127, T133, T129, inG_out_ag(T133, T129)) → pH_out_gag(T127, T133, T129)
U13_ag(T130, T127, T128, T129, pH_out_gag(T127, T130, T129)) → inG_out_ag(T130, tree(T127, T128, T129))

The argument filtering Pi contains the following mapping:
inG_in_ag(x1, x2)  =  inG_in_ag(x2)
tree(x1, x2, x3)  =  tree(x1, x2, x3)
inG_out_ag(x1, x2)  =  inG_out_ag
s(x1)  =  s(x1)
U11_ag(x1, x2, x3, x4)  =  U11_ag(x4)
inA_in_g(x1)  =  inA_in_g(x1)
0  =  0
inA_out_g(x1)  =  inA_out_g
U1_g(x1, x2, x3, x4)  =  U1_g(x2, x4)
lessB_in_g(x1)  =  lessB_in_g(x1)
lessB_out_g(x1)  =  lessB_out_g
U2_g(x1, x2, x3, x4)  =  U2_g(x4)
U12_ag(x1, x2, x3, x4, x5)  =  U12_ag(x5)
pF_in_agg(x1, x2, x3)  =  pF_in_agg(x2, x3)
U5_agg(x1, x2, x3, x4)  =  U5_agg(x4)
lessD_in_ag(x1, x2)  =  lessD_in_ag(x2)
lessD_out_ag(x1, x2)  =  lessD_out_ag(x1)
U3_ag(x1, x2, x3)  =  U3_ag(x3)
pF_out_agg(x1, x2, x3)  =  pF_out_agg(x1)
U6_agg(x1, x2, x3, x4)  =  U6_agg(x3, x4)
U7_agg(x1, x2, x3, x4)  =  U7_agg(x1, x4)
inG_in_gg(x1, x2)  =  inG_in_gg(x1, x2)
inG_out_gg(x1, x2)  =  inG_out_gg
U11_gg(x1, x2, x3, x4)  =  U11_gg(x4)
U12_gg(x1, x2, x3, x4, x5)  =  U12_gg(x5)
pF_in_ggg(x1, x2, x3)  =  pF_in_ggg(x1, x2, x3)
U5_ggg(x1, x2, x3, x4)  =  U5_ggg(x4)
lessD_in_gg(x1, x2)  =  lessD_in_gg(x1, x2)
lessD_out_gg(x1, x2)  =  lessD_out_gg
U3_gg(x1, x2, x3)  =  U3_gg(x3)
pF_out_ggg(x1, x2, x3)  =  pF_out_ggg
U6_ggg(x1, x2, x3, x4)  =  U6_ggg(x1, x3, x4)
U7_ggg(x1, x2, x3, x4)  =  U7_ggg(x4)
U13_gg(x1, x2, x3, x4, x5)  =  U13_gg(x5)
pH_in_ggg(x1, x2, x3)  =  pH_in_ggg(x1, x2, x3)
U8_ggg(x1, x2, x3, x4)  =  U8_ggg(x4)
lessE_in_gg(x1, x2)  =  lessE_in_gg(x1, x2)
lessE_out_gg(x1, x2)  =  lessE_out_gg
U4_gg(x1, x2, x3)  =  U4_gg(x3)
pH_out_ggg(x1, x2, x3)  =  pH_out_ggg
U9_ggg(x1, x2, x3, x4)  =  U9_ggg(x2, x3, x4)
U10_ggg(x1, x2, x3, x4)  =  U10_ggg(x4)
U14_gg(x1, x2, x3, x4)  =  U14_gg(x4)
U15_gg(x1, x2, x3, x4, x5)  =  U15_gg(x5)
U16_gg(x1, x2, x3, x4, x5)  =  U16_gg(x5)
U17_gg(x1, x2, x3, x4)  =  U17_gg(x4)
U18_gg(x1, x2, x3, x4, x5)  =  U18_gg(x5)
U19_gg(x1, x2, x3, x4, x5)  =  U19_gg(x1, x4, x5)
U20_gg(x1, x2, x3, x4, x5)  =  U20_gg(x5)
U13_ag(x1, x2, x3, x4, x5)  =  U13_ag(x5)
pH_in_gag(x1, x2, x3)  =  pH_in_gag(x1, x3)
U8_gag(x1, x2, x3, x4)  =  U8_gag(x4)
lessE_in_ga(x1, x2)  =  lessE_in_ga(x1)
lessE_out_ga(x1, x2)  =  lessE_out_ga
U4_ga(x1, x2, x3)  =  U4_ga(x3)
pH_out_gag(x1, x2, x3)  =  pH_out_gag
U9_gag(x1, x2, x3, x4)  =  U9_gag(x3, x4)
U10_gag(x1, x2, x3, x4)  =  U10_gag(x4)
U14_ag(x1, x2, x3, x4)  =  U14_ag(x4)
U15_ag(x1, x2, x3, x4, x5)  =  U15_ag(x5)
U16_ag(x1, x2, x3, x4, x5)  =  U16_ag(x5)
U17_ag(x1, x2, x3, x4)  =  U17_ag(x4)
U18_ag(x1, x2, x3, x4, x5)  =  U18_ag(x5)
U19_ag(x1, x2, x3, x4, x5)  =  U19_ag(x4, x5)
U20_ag(x1, x2, x3, x4, x5)  =  U20_ag(x5)
ING_IN_AG(x1, x2)  =  ING_IN_AG(x2)
PH_IN_GAG(x1, x2, x3)  =  PH_IN_GAG(x1, x3)
U9_GAG(x1, x2, x3, x4)  =  U9_GAG(x3, x4)
U19_AG(x1, x2, x3, x4, x5)  =  U19_AG(x4, x5)

We have to consider all (P,R,Pi)-chains

(52) UsableRulesProof (EQUIVALENT transformation)

For (infinitary) constructor rewriting [LOPSTR] we can delete all non-usable rules from R.

(53) Obligation:

Pi DP problem:
The TRS P consists of the following rules:

ING_IN_AG(T130, tree(T127, T128, T129)) → PH_IN_GAG(T127, T130, T129)
PH_IN_GAG(T127, T133, T129) → U9_GAG(T127, T133, T129, lessE_in_ga(T127, T133))
U9_GAG(T127, T133, T129, lessE_out_ga(T127, T133)) → ING_IN_AG(T133, T129)
ING_IN_AG(s(T219), tree(0, T211, T212)) → ING_IN_AG(s(T219), T212)
ING_IN_AG(s(T235), tree(s(T230), T211, T212)) → U19_AG(T235, T230, T211, T212, lessE_in_ga(T230, T235))
U19_AG(T235, T230, T211, T212, lessE_out_ga(T230, T235)) → ING_IN_AG(s(T235), T212)

The TRS R consists of the following rules:

lessE_in_ga(0, s(T140)) → lessE_out_ga(0, s(T140))
lessE_in_ga(s(T145), s(T147)) → U4_ga(T145, T147, lessE_in_ga(T145, T147))
U4_ga(T145, T147, lessE_out_ga(T145, T147)) → lessE_out_ga(s(T145), s(T147))

The argument filtering Pi contains the following mapping:
tree(x1, x2, x3)  =  tree(x1, x2, x3)
s(x1)  =  s(x1)
0  =  0
lessE_in_ga(x1, x2)  =  lessE_in_ga(x1)
lessE_out_ga(x1, x2)  =  lessE_out_ga
U4_ga(x1, x2, x3)  =  U4_ga(x3)
ING_IN_AG(x1, x2)  =  ING_IN_AG(x2)
PH_IN_GAG(x1, x2, x3)  =  PH_IN_GAG(x1, x3)
U9_GAG(x1, x2, x3, x4)  =  U9_GAG(x3, x4)
U19_AG(x1, x2, x3, x4, x5)  =  U19_AG(x4, x5)

We have to consider all (P,R,Pi)-chains

(54) PiDPToQDPProof (SOUND transformation)

Transforming (infinitary) constructor rewriting Pi-DP problem [LOPSTR] into ordinary QDP problem [LPAR04] by application of Pi.

(55) Obligation:

Q DP problem:
The TRS P consists of the following rules:

ING_IN_AG(tree(T127, T128, T129)) → PH_IN_GAG(T127, T129)
PH_IN_GAG(T127, T129) → U9_GAG(T129, lessE_in_ga(T127))
U9_GAG(T129, lessE_out_ga) → ING_IN_AG(T129)
ING_IN_AG(tree(0, T211, T212)) → ING_IN_AG(T212)
ING_IN_AG(tree(s(T230), T211, T212)) → U19_AG(T212, lessE_in_ga(T230))
U19_AG(T212, lessE_out_ga) → ING_IN_AG(T212)

The TRS R consists of the following rules:

lessE_in_ga(0) → lessE_out_ga
lessE_in_ga(s(T145)) → U4_ga(lessE_in_ga(T145))
U4_ga(lessE_out_ga) → lessE_out_ga

The set Q consists of the following terms:

lessE_in_ga(x0)
U4_ga(x0)

We have to consider all (P,Q,R)-chains.

(56) QDPSizeChangeProof (EQUIVALENT transformation)

By using the subterm criterion [SUBTERM_CRITERION] together with the size-change analysis [AAECC05] we have proven that there are no infinite chains for this DP problem.

From the DPs we obtained the following set of size-change graphs:

  • PH_IN_GAG(T127, T129) → U9_GAG(T129, lessE_in_ga(T127))
    The graph contains the following edges 2 >= 1

  • U9_GAG(T129, lessE_out_ga) → ING_IN_AG(T129)
    The graph contains the following edges 1 >= 1

  • ING_IN_AG(tree(T127, T128, T129)) → PH_IN_GAG(T127, T129)
    The graph contains the following edges 1 > 1, 1 > 2

  • ING_IN_AG(tree(s(T230), T211, T212)) → U19_AG(T212, lessE_in_ga(T230))
    The graph contains the following edges 1 > 1

  • ING_IN_AG(tree(0, T211, T212)) → ING_IN_AG(T212)
    The graph contains the following edges 1 > 1

  • U19_AG(T212, lessE_out_ga) → ING_IN_AG(T212)
    The graph contains the following edges 1 >= 1

(57) YES